[openstack-dev] Unable to change environment Variables for demo or admin tenant during runtime
Unable to set Environment variables like *OS_USERNAME, OS_PASSWORD, OS_TENANT_NAME, OS_REGION_NAME, OS_AUTH_URL* during run time through for example *os.system("source openrc demo demo")* ,in order to run commands for demo project like *ceilometer event-list*. Actually I am unable to get demo's project events from admin credentials set and could not change to demo credentials in my logic. Instead getting error sh: 1: source: not found on executing source openrc demo demo command __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [ceilometer] Why edited configuration get replaced after stack.sh
Hello Rubab, I already know these steps.But does this mean you have to update the previous all custom configurations again and again whenever you stack.sh??? Is there any way possible that these changes don't get updated because in a testing environment like mine I have to do it very often. Regards, Umar On Tue, Mar 15, 2016 at 5:36 PM, Rubab Syed <rubab.sye...@gmail.com> wrote: > Hi Umar, > > As far as I know, you should follow these steps to make this work: > > 1- Run stack.sh > 2- Add rules to policy.json in /etc/ceilometer > 3- Restart ceilometer service. Follow this link [1] to see how can you > restart a particular service. > > [1] > http://stackoverflow.com/questions/23593508/restarting-a-service-in-openstack-installed-using-devstack > > Hope this helps. > > Rubab > > On Tue, Mar 15, 2016 at 4:57 PM, Umar Yousaf <umarusaf...@gmail.com> > wrote: > >> Hi, >> >> I am pretty new to openstack and I have a very basic question to ask. I >> have a single node liberty edition of devstack up and running. >> >> I order to get *ceilometer events* for instances running on demo tenant >> with admin token set I have heard about role based access control (rbac) >> following >> http://specs.openstack.org/openstack/ceilometer-specs/specs/liberty/events-rbac.html, >> so I added those two rules in *policy.json * inside* /etc/ceilometer* >> and in order to test its affect I ./stack.sh but after that I could not >> find those two rules added by me. The file is updated again with its >> default values. >> >> Is there anyway that these changes remain intact after stack.sh too. >> Isn't it a very general thing that you have to update the configuration in >> order to override the default behavior and in testing environment such as >> mine you will be doing stack.sh very often so these changes must not be >> updated by the default ones again. >> >> Regards, >> Umar >> >> __ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: >> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [ceilometer] Why edited configuration get replaced after stack.sh
Hi, I am pretty new to openstack and I have a very basic question to ask. I have a single node liberty edition of devstack up and running. I order to get *ceilometer events* for instances running on demo tenant with admin token set I have heard about role based access control (rbac) following http://specs.openstack.org/openstack/ceilometer-specs/specs/liberty/events-rbac.html, so I added those two rules in *policy.json * inside* /etc/ceilometer* and in order to test its affect I ./stack.sh but after that I could not find those two rules added by me. The file is updated again with its default values. Is there anyway that these changes remain intact after stack.sh too. Isn't it a very general thing that you have to update the configuration in order to override the default behavior and in testing environment such as mine you will be doing stack.sh very often so these changes must not be updated by the default ones again. Regards, Umar __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [ceilometer] Could not get ceilometer events for instances running on demo tenant
I have a single node configuration for devstack liberty working and I want to record all the *ceilometer events* like compute.instance.start, compute.instance.end, compute.instance.update etc occurred recently. I am unable to get any event occurred for instances running for demo project i.e when I try *ceilometer event-list* I end up with an empty list but I could fortunately get all the necessary events occurred for instances running for admin project/tenant with the same command, I already have set following in ceilometer.conf [notification] store_events = True In addition to this I want to get these through python client so if someone could provide me with the equivalent python call, that would be more than handy. Thanks in advance :) Regard, Umar __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [ceilometer] Unable to get ceilometer events for instances running for demo project
Hey liusheng, When I run the command event-list with admin tenant I get all the available events but when I run the same command with demo environment variables set,I get empty list. So why I am not able to get the events for instances running on demo tenant like admin??? Regards, Umar On Mar 3, 2016 7:16 PM, "Umar Yousaf" <umarusaf...@gmail.com> wrote: > Hey liusheng, > When I run the command event-list with admin tenant I get all the > available events but when I run the same command with demo environment > variables set,I get empty list > On Mar 3, 2016 2:19 PM, "liusheng" <liusheng1...@126.com> wrote: > >> Hi Umar, >> You can only get the events(or events without project info) belong to >> admin tenant if you run event-list command with admin project; and you can >> only get the events belong to demo tenant with event-list running with demo >> project. >> >> -- >> Liu sheng >> 在 2016/3/1 14:00, Umar Yousaf 写道: >> >> I have a single node configuration for devstack liberty working and I >> want to record all the *ceilometer events* like compute.instance.start, >> compute.instance.end, compute.instance.update etc occurred recently. >> I am unable to get any event occurred for instances running for demo >> project i.e when I try *ceilometer event-list* I end up with an empty >> list but I could fortunately get all the necessary events occurred for >> instances running for admin project/tenant with the same command. >> In addition to this I want to get these through python client so if >> someone could provide me with the equivalent python call, that would be >> more than handy. >> Thanks in advance :) >> Regard, >> Umar >> >> >> __ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: >> openstack-dev-requ...@lists.openstack.org?subject:unsubscribehttp://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> >> >> __ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: >> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [ceilometer] Unable to get ceilometer events for instances running for demo project
Hey liusheng, When I run the command event-list with admin tenant I get all the available events but when I run the same command with demo environment variables set,I get empty list On Mar 3, 2016 2:19 PM, "liusheng" <liusheng1...@126.com> wrote: > Hi Umar, > You can only get the events(or events without project info) belong to > admin tenant if you run event-list command with admin project; and you can > only get the events belong to demo tenant with event-list running with demo > project. > > -- > Liu sheng > 在 2016/3/1 14:00, Umar Yousaf 写道: > > I have a single node configuration for devstack liberty working and I want > to record all the *ceilometer events* like compute.instance.start, > compute.instance.end, compute.instance.update etc occurred recently. > I am unable to get any event occurred for instances running for demo > project i.e when I try *ceilometer event-list* I end up with an empty > list but I could fortunately get all the necessary events occurred for > instances running for admin project/tenant with the same command. > In addition to this I want to get these through python client so if > someone could provide me with the equivalent python call, that would be > more than handy. > Thanks in advance :) > Regard, > Umar > > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: > openstack-dev-requ...@lists.openstack.org?subject:unsubscribehttp://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [ceilometer] Unable to get ceilometer events for instances running on demo project
I have a single node configuration for devstack liberty working and I want to record all the *ceilometer events* like compute.instance.start, compute.instance.end, compute.instance.update etc occurred recently. I am unable to get any event occurred for instances running for demo project i.e when I try *ceilometer event-list* I end up with an empty list but I could fortunately get all the necessary events occurred for instances running for admin project/tenant with the same command. In addition to this I want to get these through python client so if someone could provide me with the equivalent python call, that would be more than handy. Thanks in advance :) Regard, Umar __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [ceilometer] Unable to get ceilometer events for instances running for demo project
I have a single node configuration for devstack liberty working and I want to record all the ceilometer events like compute.instance.start, compute.instance.end, compute.instance.update etc occurred recently. I am unable to get any event occurred for instances running for demo project i.e when I try ceilometer event-list I end up with an empty list but I could fortunately get all the necessary events occurred for instances running for admin project/tenant with the same command. In addition to this I want to get these through python client so if someone could provide me with the equivalent python call, that would be more than handy. Thanks in advance :) Regard, Umar __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [ceilometer] Unable to get ceilometer events for instances running for demo project
I have a single node configuration for devstack liberty working and I want to record all the *ceilometer events* like compute.instance.start, compute.instance.end, compute.instance.update etc occurred recently. I am unable to get any event occurred for instances running for demo project i.e when I try *ceilometer event-list* I end up with an empty list but I could fortunately get all the necessary events occurred for instances running for admin project/tenant with the same command. In addition to this I want to get these through python client so if someone could provide me with the equivalent python call, that would be more than handy. Thanks in advance :) Regard, Umar __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [all] Getting error after doing unstack.sh on stable/liberty
I just did unstack.sh due to some reason and then afterwards when I run stack.sh I am getting following error i) Error: Service g-api is not running ii) Error: Service g-reg is not running iii) Error: Service h-api is not running After a lot of struggle I found a resolution that when I reboot my machine,I can successfully stack.sh just like before.Its really tedious to do reboot.So anyone has a better solution to this problem.I know in previous additions of devstack there were not any problems like that but I dont know why it is happening... Here is the log where error comes 2016-02-08 01:40:47.966 | + failures='/opt/stack/status/stack/g-api.failure 2016-02-08 01:40:47.967 | /opt/stack/status/stack/g-reg.failure 2016-02-08 01:40:47.967 | /opt/stack/status/stack/h-api.failure' 2016-02-08 01:40:47.967 | + for service in '$failures' 2016-02-08 01:40:47.967 | ++ basename /opt/stack/status/stack/g-api.failure 2016-02-08 01:40:47.969 | + service=g-api.failure 2016-02-08 01:40:47.969 | + service=g-api 2016-02-08 01:40:47.969 | + echo 'Error: Service g-api is not running' 2016-02-08 01:40:47.969 | Error: Service g-api is not running 2016-02-08 01:40:47.969 | + for service in '$failures' 2016-02-08 01:40:47.969 | ++ basename /opt/stack/status/stack/g-reg.failure 2016-02-08 01:40:47.970 | + service=g-reg.failure 2016-02-08 01:40:47.970 | + service=g-reg 2016-02-08 01:40:47.970 | + echo 'Error: Service g-reg is not running' 2016-02-08 01:40:47.970 | Error: Service g-reg is not running 2016-02-08 01:40:47.970 | + for service in '$failures' 2016-02-08 01:40:47.970 | ++ basename /opt/stack/status/stack/h-api.failure 2016-02-08 01:40:47.971 | + service=h-api.failure 2016-02-08 01:40:47.971 | + service=h-api 2016-02-08 01:40:47.971 | + echo 'Error: Service h-api is not running' 2016-02-08 01:40:47.971 | Error: Service h-api is not running 2016-02-08 01:40:47.971 | + '[' -n '/opt/stack/status/stack/g-api.failure 2016-02-08 01:40:47.971 | /opt/stack/status/stack/g-reg.failure 2016-02-08 01:40:47.971 | /opt/stack/status/stack/h-api.failure' ']' 2016-02-08 01:40:47.972 | + die 1537 'More details about the above errors can be found with screen, with ./rejoin-stack.sh' 2016-02-08 01:40:47.972 | + local exitcode=0 2016-02-08 01:40:47.972 | [Call Trace] 2016-02-08 01:40:47.972 | ./stack.sh:1314:service_check 2016-02-08 01:40:47.972 | /home/airbourne/devstack/functions-common:1537:die 2016-02-08 01:40:47.974 | [ERROR] /home/airbourne/devstack/functions-common:1537 More details about the above errors can be found with screen, with ./rejoin-stack.sh 2016-02-08 01:40:49.057 | Error on exit regards, Umar __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev