<html><head><style>body{font-family:Calibri,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Calibri,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">you do not have to change the file just do </div><div id="bloop_customfont" style="font-family:Calibri,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Calibri,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">source openrc admin</div><div id="bloop_customfont" style="font-family:Calibri,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">or</div><div id="bloop_customfont" style="font-family:Calibri,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">. openrc admin </div> <div id="bloop_sign_1386354691991705856" class="bloop_sign"><br></div><div id="bloop_sign_1386354691991705856" class="bloop_sign">Ciao</div><div id="bloop_sign_1386354691991705856" class="bloop_sign"><span style="font-family:helvetica,arial;font-size:13px"></span>-- <br>Remo Mattei<br><br></div> <br><p style="color:#A0A0A8;"> December 6, 2013 at 10:28:08, Mark Vlcek (mavlcek) (<a href="mailto://mavlcek@cisco.com">mavlcek@cisco.com</a>) ha scritto:</p> <blockquote type="cite" class="clean_bq"><span><div><div>For the record, I was able to just change the OS_USERNAME from "demo" to
<br>"admin" in the openrc file provided in the DevStack root directory then
<br>source the openrc file again and that worked. I assume the first command
<br>you provided would simply unset the OS_TENANT_NAME and OS_USERNAME
<br>variables then running the second command would set both of them to admin
<br>which is essentially the "automated" way of doing it.
<br>
<br>
<br>Unfortunately I'm still getting the "Authentication required" message when
<br>I try to hit http://[my_vm_hostname]:8777/. Is there something else I need
<br>to do?
<br>
<br>Thanks,
<br>Mark
<br>
<br>On 12/6/13 12:50 AM, "Eoghan Glynn" <eglynn@redhat.com> wrote:
<br>
<br>>
<br>>
<br>>----- Original Message -----
<br>>> Hi All,
<br>>>
<br>>> I'm trying to get Ceilometer working on OpenStack Havana (installed via
<br>>> DevStack ) but running into issues with the APIs. I believe Ceilometer
<br>>>is
<br>>> installed and enabled but when I hit http://[my_vm_hostname]:8777/ just
<br>>>like
<br>>> that or with any parameters I just get "Authentication required" back.
<br>>>
<br>>> I thought maybe this was an issue with my Keystone configuration so I
<br>>>tried
<br>>> following the instructions found here but whenever I try making a
<br>>>keystone
<br>>> call I just get "You are not authorized to perform the requested action,
<br>>> admin_required. (HTTP 403)."
<br>>>
<br>>> When I ran keystone token-get it looks like the user_id it's returning
<br>>>is
<br>>> implying that I'm running as the "demo" user but I don't know how to
<br>>>switch
<br>>> to the "admin" user.
<br>>
<br>>To switch to the admin user:
<br>>
<br>> unset $(env | awk -F= '/^OS_/ {print $1}')
<br>> . openrc admin admin
<br>>
<br>>> Looks like the openrc file from DevStack already set
<br>>> all the necessary environment variables as far as I can tell and I've
<br>>> sourced that so should be all good there.
<br>>>
<br>>> I tried following the instructions here to create an admin user but, no
<br>>> surprise, I get the not authorized error again.
<br>>>
<br>>> Any help in this matter would be greatly appreciated, really looking
<br>>>forward
<br>>> to using Ceilometer!
<br>>>
<br>>> Thanks,
<br>>> Mark
<br>>>
<br>>> _______________________________________________
<br>>> Mailing list:
<br>>>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>>> Post to : openstack@lists.openstack.org
<br>>> Unsubscribe :
<br>>>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>>>
<br>
<br>
<br>_______________________________________________
<br>Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>Post to : openstack@lists.openstack.org
<br>Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>
<br>!DSPAM:2,52a21738163971459711977!
<br>
<br></div></div></span></blockquote></body></html>