Ask Your Question
0

Error: Could not set 'present' on ensure: undefined method `split' for nil:NilClass at 64

asked 2017-10-09 22:00:28 -0600

nzrtp gravatar image

updated 2017-10-14 10:49:09 -0600

I am getting above error with Openstack Ocata install (with packstack). Any clue what is missing here?

Thanks,

Copying Puppet modules and manifests [ DONE ] Applying 172.18.7.21_controller.pp 172.18.7.21_controller.pp: [ ERROR ] Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 172.18.7.21_controller.pp Error: Could not set 'present' on ensure: undefined method `split' for nil:NilClass at 64:/var/tmp/packstack/1d0605b31d964a4380ebc8b9ab934eaa/modules/packstack/manifests/provision.pp You will find full trace in log /var/tmp/packstack/20171009-215216-E7qxfx/manifests/172.18.7.21_controller.pp.log Please check log file /var/tmp/packstack/20171009-215216-E7qxfx/openstack-setup.log for more information Additional information:

edit retag flag offensive close merge delete

Comments

I would guess that you have some incompatible software on that server, perhaps remnants of an earlier Packstack installation. In any case, is there anything clearer in /var/tmp/packstack/20171009-215216-E7qxfx/openstack-setup.log?

Bernd Bausch gravatar imageBernd Bausch ( 2017-10-09 23:12:40 -0600 )edit

There was an older openstack install, which was un-installed and folders removed. Re-installed RHEL from scratch on 3 out of 5 servers. Still getting same error:

Due to reply character limitations, logs pasted on the main thread.

nzrtp gravatar imagenzrtp ( 2017-10-12 14:55:43 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-10-12 14:59:55 -0600

nzrtp gravatar image

updated 2017-10-13 09:30:30 -0600

Bernd Bausch gravatar image

pplying 172.18.7.21_controller.pp 172.18.7.21_controller.pp: [ ERROR ] Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 172.18.7.21_controller.pp Error: Could not set 'present' on ensure: undefined method `split' for nil:NilClass at 64:/var/tmp/packstack/b7691a98b78349f0844adbf0c1f2b2bc/modules/packstack/manifests/provision.pp You will find full trace in log /var/tmp/packstack/20171012-152405-nUJBp2/manifests/172.18.7.21_controller.pp.log Please check log file /var/tmp/packstack/20171012-152405-nUJBp2/openstack-setup.log for more information

/var/tmp/packstack/20171012-152405-nUJBp2/manifests/172.18.7.21_controller.pp.log:

^[[mNotice: Puppet::Type::Neutron_network::ProviderNeutron: Unable to complete neutron request due to non-fatal error: "Execution of '/usr/bin/neutron net-create --format=shell --tenant_id=0f54c24446a442e1b0cfd2828a8f7b51 --provider:network_type=flat --provider:physical_network=extnet --router:external public' returned 1: neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Invalid input for operation: network_type value 'flat' not supported.
Neutron server returns request_ids: ['req-89541236-7617-425d-a757-3645cae2bb59']". Retrying for 5 sec.^[[0m
^[[mNotice: Puppet::Type::Neutron_network::ProviderNeutron: Unable to complete neutron request due to non-fatal error: "Execution of '/usr/bin/neutron net-create --format=shell --tenant_id=0f54c24446a442e1b0cfd2828a8f7b51 --provider:network_type=flat --provider:physical_network=extnet --router:external public' returned 1: neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Invalid input for operation: network_type value 'flat' not supported.
Neutron server returns request_ids: ['req-3a3e0fa7-f504-4d6c-b5ef-1359b0dbd696']". Retrying for 1 sec.^[[0m
^[[1;31mError: Could not set 'present' on ensure: undefined method `split' for nil:NilClass at 64:/var/tmp/packstack/b7691a98b78349f0844adbf0c1f2b2bc/modules/packstack/manifests/provision.pp^[[0m
^[[1;31mError: Could not set 'present' on ensure: undefined method `split' for nil:NilClass at 64:/var/tmp/packstack/b7691a98b78349f0844adbf0c1f2b2bc/modules/packstack/manifests/provision.pp
Wrapped exception:
undefined method `split' for nil:NilClass^[[0m
^[[1;31mError: /Stage[main]/Packstack::Provision/Neutron_network[public]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `split' for nil:NilClass at 64:/var/tmp/packstack/b7691a98b78349f0844adbf0c1f2b2bc/modules/packstack/manifests/provision.pp^[[0m
^[[mNotice: /Stage[main]/Packstack::Provision/Neutron_subnet[public_subnet]: Dependency Neutron_network[public] has failures: true^[[0m
^[[1;33mWarning: /Stage[main]/Packstack::Provision/Neutron_subnet[public_subnet]: Skipping because of failed dependencies^[[0m
^[[mNotice: /Stage[main]/Packstack::Provision/Neutron_router[router1]: Dependency Neutron_network[public] has failures: true^[[0m
^[[1;33mWarning: /Stage[main]/Packstack::Provision/Neutron_router[router1]: Skipping because of failed dependencies^[[0m
^[[mNotice: /Stage[main]/Packstack::Provision/Neutron_router_interface[router1:private_subnet]: Dependency Neutron_network[public] has failures: true^[[0m
^[[1;33mWarning: /Stage[main]/Packstack::Provision/Neutron_router_interface[router1:private_subnet]: Skipping because of failed dependencies^[[0m
^[[mNotice: /Stage[main]/Swift::Deps/Anchor[swift::service::end]: Triggered 'refresh' from 1 events^[[0m
^[[mNotice: Applied catalog in 307.61 seconds^[[0m

/var/tmp/packstack/20171012-152405-nUJBp2/openstack-setup.log:

cd /usr/lib/python2.7/site-packages/packstack/puppet
cd /var/tmp/packstack/20171012-152405-nUJBp2/manifests
tar --dereference -cpzf - ../manifests | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@172.18.7.26 tar -C /var/tmp/packstack/dd01b0845f5b4340b3d5866f27f173ab -xpzf -
cd /usr/share/openstack-puppet/modules
tar --dereference -cpzf - aodh apache ceilometer certmonger cinder concat firewall glance gnocchi ...
(more)
edit flag offensive delete link more

Comments

The root cause is probably this: network_type value 'flat' not supported. Perhaps it's a bug?

You may get the attention of the Packstack team by adding an RDO tag to your question.

Bernd Bausch gravatar imageBernd Bausch ( 2017-10-13 09:32:34 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-10-09 22:00:28 -0600

Seen: 108 times

Last updated: Oct 13