[Hawkular-dev] Hawkular in OpenShift

Thomas Heute theute at redhat.com
Mon Jan 16 07:42:56 EST 2017


With newer versions of oc it worked well without it !

Thanks,
Thomas

On Wed, Jan 11, 2017 at 5:27 PM, Matt Wringe <mwringe at redhat.com> wrote:

>
>
> ----- Original Message -----
> > From: "Thomas Heute" <theute at redhat.com>
> > To: "Discussions around Hawkular development" <
> hawkular-dev at lists.jboss.org>
> > Sent: Wednesday, 11 January, 2017 9:39:48 AM
> > Subject: Re: [Hawkular-dev] Hawkular in OpenShift
> >
> > [theute at localhost vertx-opentracing]$ oc version
> > oc v1.3.1
> > kubernetes v1.3.0+52492b4
> > features: Basic-Auth GSSAPI Kerberos SPNEGO
> >
> > Server https://10.202.9.50:8443
> > openshift v1.5.0-alpha.1+9e682de-55
> > kubernetes v1.4.0+776c994
> >
> >
> > and Hawkular Metrics 0.21.5.Final
>
> The version of the Hawkular Metrics docker image, not the version of
> Hawkular Metrics.
>
> It should be shown in the console under the overview page.
>
> > Thomas
> >
> > On Wed, Jan 11, 2017 at 3:20 PM, Matt Wringe < mwringe at redhat.com >
> wrote:
> >
> >
> > ----- Original Message -----
> > > From: "John Mazzitelli" < mazz at redhat.com >
> > > To: "Discussions around Hawkular development" <
> > > hawkular-dev at lists.jboss.org >
> > > Sent: Wednesday, 11 January, 2017 8:52:59 AM
> > > Subject: Re: [Hawkular-dev] Hawkular in OpenShift
> > >
> > > > When I use:
> > > > oc cluster up --metrics=true
> > > >
> > > > Hawkular metrics fails until I do:
> > > > oc adm policy add-role-to-user view
> > > > system:serviceaccount:openshift-infra:hawkular -n openshift-infra
> > > >
> > > > Should that last command be part of the --metrics=true magic ?
> > >
> > >
> > > I do not have to do that. But then, I'm running from a local master
> build
> > > so
> > > I have the latest-n-greatest - maybe you have an older version?
> >
> > I suspect you are using an older version of 'oc'. Can you let us know
> which
> > version you are using? And can you also let us know what version the
> > Hawkular Metrics docker image is?
> >
> > If its a released version of 'oc' it should only ever use a versioned
> > Hawkular Metrics which matches the version of OpenShift.
> >
> >
> > >
> > > I know when I do "cluster up" I usually have to wait a bit for metrics
> to
> > > fully start and only then do I see metrics in the UI (sometimes this
> takes
> > > a
> > > few minutes on a slow machine). And before its ready, I get a warning
> > > message at the top of the UI and it only goes away until metrics is
> ready
> > > AND I browse to the metrics status page.
> > >
> > > I do, however, give my "admin" user full cluster-admin rights just so
> I can
> > > see everything when I log into the UI:
> > >
> > > $ oc adm policy add-cluster-role-to-user cluster-admin admin
> > >
> > > For the record, I have a script I use to run "cluster up" - I don't
> just
> > > run
> > > it "oc cluster up --metrics". There are other things that have to be
> done
> > > to
> > > make sure it all works (at least that's been my experience - mainly, I
> have
> > > to turn off firewalld) - this is what I use:
> > >
> > > https://github.com/hawkular/hawkular-openshift-agent/blob/
> master/hack/cluster-openshift.sh
> > >
> > > This also has a convenient "status" option so I can get a few status
> things
> > > and it has "down" which also does some other things to clean up in
> addition
> > > to
> > > "oc cluster down"
> > > _______________________________________________
> > > hawkular-dev mailing list
> > > hawkular-dev at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/hawkular-dev
> > >
> > _______________________________________________
> > hawkular-dev mailing list
> > hawkular-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hawkular-dev
> >
> >
> >
> >
> > _______________________________________________
> > hawkular-dev mailing list
> > hawkular-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hawkular-dev
> >
> _______________________________________________
> hawkular-dev mailing list
> hawkular-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hawkular-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hawkular-dev/attachments/20170116/25047c23/attachment.html 


More information about the hawkular-dev mailing list