<div dir="ltr"><div><div><div><div><div>Hi All, <br><br></div>I fixed the "stack_user_domain ID not set in heat.conf falling back to using default" error by following links given below:<br><br><a href="http://hardysteven.blogspot.fr/2014/04/heat-auth-model-updates-part-2-stack.html">http://hardysteven.blogspot.fr/2014/04/heat-auth-model-updates-part-2-stack.html</a> <br><a href="http://docs.openstack.org/developer/keystone/cli_examples.html">http://docs.openstack.org/developer/keystone/cli_examples.html</a><br><br></div>but soon after this I started getting oslo rootwrap error in nova.log, openvswitch-agent.log and in celometer-api.log files while glance, keystone and heat commands and services are working correctly. <br><br></div>I followed the link: <a href="https://ask.openstack.org/en/question/29758/why-does-nova-api-fail-icehouse-usrbinnova-rootwrap-not-found/">https://ask.openstack.org/en/question/29758/why-does-nova-api-fail-icehouse-usrbinnova-rootwrap-not-found/</a> to resolve the problem but even after reinstalling and reconfiguring nova and neutron services, verified existence of nova and neutron rootwrap files in /usr/bin/, I am still getting these errors:<br><br>nova-api.log:<br><br>2014-11-07 13:40:30.609 30639 TRACE nova Traceback (most recent call last):<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/bin/nova-api", line 10, in <module><br>2014-11-07 13:40:30.609 30639 TRACE nova sys.exit(main())<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/cmd/api.py", line 53, in main<br>2014-11-07 13:40:30.609 30639 TRACE nova server = service.WSGIService(api, use_ssl=should_use_ssl)<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 330, in __init__<br>2014-11-07 13:40:30.609 30639 TRACE nova self.manager = self._get_manager()<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 374, in _get_manager<br>2014-11-07 13:40:30.609 30639 TRACE nova return manager_class()<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/api/manager.py", line 30, in __init__<br>2014-11-07 13:40:30.609 30639 TRACE nova self.network_driver.metadata_accept()<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 666, in metadata_accept<br>2014-11-07 13:40:30.609 30639 TRACE nova iptables_manager.apply()<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 434, in apply<br>2014-11-07 13:40:30.609 30639 TRACE nova self._apply()<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 249, in inner<br>2014-11-07 13:40:30.609 30639 TRACE nova return f(*args, **kwargs)<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 454, in _apply<br>2014-11-07 13:40:30.609 30639 TRACE nova attempts=5)<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 1211, in _execute<br>2014-11-07 13:40:30.609 30639 TRACE nova return utils.execute(*cmd, **kwargs)<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 165, in execute<br>2014-11-07 13:40:30.609 30639 TRACE nova return processutils.execute(*cmd, **kwargs)<br>2014-11-07 13:40:30.609 30639 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/processutils.py", line 195, in execute<br>2014-11-07 13:40:30.609 30639 TRACE nova cmd=sanitized_cmd)<br>2014-11-07 13:40:30.609 30639 TRACE nova ProcessExecutionError: Unexpected error while running command.<br>2014-11-07 13:40:30.609 30639 TRACE nova Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c<br>2014-11-07 13:40:30.609 30639 TRACE nova Exit code: 1<br>2014-11-07 13:40:30.609 30639 TRACE nova Stdout: u''<br>2014-11-07 13:40:30.609 30639 TRACE nova Stderr: u'Traceback (most recent call last):\n File "/usr/bin/nova-rootwrap", line 6, in <module>\n $<br>2014-11-07 13:40:30.609 30639 TRACE nova<br>2014-11-07 13:40:30.701 30652 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting<br>2014-11-07 13:40:30.702 30647 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting<br>2014-11-07 13:40:30.702 30645 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting<br>2014-11-07 13:40:30.702 30652 INFO nova.wsgi [-] Stopping WSGI server.<br>2014-11-07 13:40:30.702 30647 INFO nova.wsgi [-] Stopping WSGI server.<br>2014-11-07 13:40:30.702 30645 INFO nova.wsgi [-] Stopping WSGI server.<br>2014-11-07 13:40:30.702 30652 INFO nova.wsgi [-] WSGI server has stopped.<br>2014-11-07 13:40:30.703 30647 INFO nova.wsgi [-] WSGI server has stopped.<br>2014-11-07 13:40:30.703 30645 INFO nova.wsgi [-] WSGI server has stopped.<br>2014-11-07 13:40:30.705 30651 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting<br>2014-11-07 13:40:30.706 30650 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting<br>2014-11-07 13:40:30.701 30649 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting<br>2014-11-07 13:40:30.706 30651 INFO nova.wsgi [-] Stopping WSGI server.<br><br>==============================================================================================================================================<br>File: /var/log/neutron/openvswitch-agent.log <br><br>2014-11-07 13:44:20.288 31682 TRACE neutron Traceback (most recent call last):<br>2014-11-07 13:44:20.288 31682 TRACE neutron File "/usr/bin/neutron-openvswitch-agent", line 10, in <module><br>2014-11-07 13:44:20.288 31682 TRACE neutron sys.exit(main())<br>2014-11-07 13:44:20.288 31682 TRACE neutron File "/usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", l$<br>2014-11-07 13:44:20.288 31682 TRACE neutron agent = OVSNeutronAgent(**agent_config)<br>2014-11-07 13:44:20.288 31682 TRACE neutron File "/usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", l$<br>2014-11-07 13:44:20.288 31682 TRACE neutron self.setup_integration_br()<br>2014-11-07 13:44:20.288 31682 TRACE neutron File "/usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", l$<br>2014-11-07 13:44:20.288 31682 TRACE neutron self.int_br.set_secure_mode()<br>2014-11-07 13:44:20.288 31682 TRACE neutron File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 130, in set_secure_m$<br>2014-11-07 13:44:20.288 31682 TRACE neutron check_error=True)<br>2014-11-07 13:44:20.288 31682 TRACE neutron File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 75, in run_vsctl<br>2014-11-07 13:44:20.288 31682 TRACE neutron ctxt.reraise = False<br>2014-11-07 13:44:20.288 31682 TRACE neutron File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/excutils.py", line 82, in __exit__<br>2014-11-07 13:44:20.288 31682 TRACE neutron six.reraise(self.type_, self.value, self.tb)<br>2014-11-07 13:44:20.288 31682 TRACE neutron File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 68, in run_vsctl<br>2014-11-07 13:44:20.288 31682 TRACE neutron return utils.execute(full_args, root_helper=self.root_helper)<br>2014-11-07 13:44:20.288 31682 TRACE neutron File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 82, in execute<br>2014-11-07 13:44:20.288 31682 TRACE neutron raise RuntimeError(m)<br>2014-11-07 13:44:20.288 31682 TRACE neutron RuntimeError:<br>2014-11-07 13:44:20.288 31682 TRACE neutron Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeou$<br>2014-11-07 13:44:20.288 31682 TRACE neutron Exit code: 1<br>2014-11-07 13:44:20.288 31682 TRACE neutron Stdout: ''<br>2014-11-07 13:44:20.288 31682 TRACE neutron Stderr: 'Traceback (most recent call last):\n File "/usr/bin/neutron-rootwrap", line 6, in <module$<br>2014-11-07 13:44:20.288 31682 TRACE neutron<br><br>=============================================================================================================================================<br>File: /var/log/ceilometer/ceilometer-api.log<br><br>2014-11-07 14:12:38.988 2161 TRACE ceilometer<br>2014-11-07 14:12:40.714 2180 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware<br>2014-11-07 14:12:40.714 2180 WARNING keystoneclient.middleware.auth_token [-] This middleware module is deprecated as of v0.10.0 in favor of ke$<br>2014-11-07 14:12:40.715 2180 WARNING keystoneclient.middleware.auth_token [-] Configuring admin URI using auth fragments. This is deprecated, u$<br>2014-11-07 14:12:40.715 2180 INFO keystoneclient.middleware.auth_token [-] Using /tmp/keystone-signing-1uujeL as cache directory for signing ce$<br>2014-11-07 14:12:40.715 2180 CRITICAL ceilometer [-] TypeError: unsupported type for timedelta seconds component: str<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer Traceback (most recent call last):<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer File "/usr/bin/ceilometer-api", line 10, in <module><br>2014-11-07 14:12:40.715 2180 TRACE ceilometer sys.exit(api())<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/cli.py", line 97, in api<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer srv = app.build_server()<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/api/app.py", line 126, in build_server<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer root = VersionSelectorApplication()<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/api/app.py", line 96, in __init__<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer self.v1 = v1app.make_app(cfg.CONF, enable_acl=pc.app.enable_acl)<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/api/v1/app.py", line 61, in make_app<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer app.wsgi_app = acl.install(app.wsgi_app, conf)<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/api/acl.py", line 44, in install<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer conf=dict(conf.get(OPT_GROUP_NAME)))<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer File "/usr/local/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 591$<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer seconds=self._conf_get('revocation_cache_time'))<br>2014-11-07 14:12:40.715 2180 TRACE ceilometer TypeError: unsupported type for timedelta seconds component: str<br><br></div>Please tell me how do I fix these errors, any help/suggestion will be highly appreciated. <br><br></div>Thanks and Regards, <br><div><div><br><br><div><div><div><div><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 6, 2014 at 6:20 PM, Don Waterloo <span dir="ltr"><<a href="mailto:don.waterloo@gmail.com" target="_blank">don.waterloo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 6 November 2014 09:20, Sadia Bashir <span dir="ltr"><<a href="mailto:11msccssbashir@seecs.edu.pk" target="_blank">11msccssbashir@seecs.edu.pk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi everyone, <br><br></div>I am working on Icehouse All-in-one ubuntu 14.04, metering and orchestration. I have created a simple autoscaling yaml template but this error in heat-engine.log leaves creation of stack failed:<br><br>2014-11-06 13:08:17.693 2282 WARNING heat.common.keystoneclient [-] stack_user_domain ID not set in heat.conf falling back to using default<br>2014-11-06 13:08:17.694 2282 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller<br>2014-11-06 13:08:17.962 2282 WARNING heat.common.keystoneclient [-] stack_user_domain ID not set in heat.conf falling back to using default<br>2014-11-06 13:08:17.963 2282 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller<br>2014-11-06 13:08:18.322 2282 WARNING heat.common.keystoneclient [-] stack_user_domain ID not set in heat.conf falling back to using default<br><br></div>My question is how do I set "stack_user_domain" in heat.conf?<br><br># Keystone domain ID which contains heat template-defined<br># users. (string value)<br>#stack_user_domain=<None><br clear="all"><div><div><div><br></div></div></div></div></blockquote><div><br></div></div></div><div>Steve Hardy did a great blog post here <a href="http://hardysteven.blogspot.co.uk/2014/04/heat-auth-model-updates-part-1-trusts.html" target="_blank">http://hardysteven.blogspot.co.uk/2014/04/heat-auth-model-updates-part-1-trusts.html</a> which describes this quite nicely. I recommend reading and following.</div><span><font color="#888888"><div><br></div><div>--don</div></font></span></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div><div><font color="#3366ff"><br></font></div><div><font color="#3366ff"></font> </div></div>
</div></div></div></div></div></div></div></div>