Could not prefetch keystone_role provider 'openstack': Execution of '/usr/bin/openstack role list --quiet --format csv' returned 1: 'NoneType' object has no attribute '__getitem__'

Bug #1590206 reported by Fong
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Packstack
New
Undecided
Unassigned

Bug Description

Getting this error on CentOS 7:

16.89.90.250_keystone.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 16.89.90.250_keystone.pp
Error: Could not prefetch keystone_role provider 'openstack': Execution of '/usr/bin/openstack role list --quiet --format csv' returned 1: 'NoneType' object has no attribute '__getitem__'

These are the versions:

[root@test-centos07 ~]# rpm -qa|grep openstack
openstack-puppet-modules-8.0.4-1.el7.noarch
openstack-packstack-8.0.0-1.el7.noarch
python2-openstacksdk-0.8.3-1.el7.noarch
openstack-packstack-puppet-8.0.0-1.el7.noarch
openstack-keystone-9.0.0-1.el7.noarch
openstack-selinux-0.6.58-1.el7.noarch
openstack-utils-2015.2-1.el7.noarch
openstack-cinder-8.0.0-1.el7.noarch
python-openstackclient-2.2.0-1.el7.noarch

Revision history for this message
Alfredo Moralejo (amoralej) wrote :

Could you please provide the answers file or options you used for the packstack execution?, i'll try to reproduce it.

Revision history for this message
Fong (fong-yang) wrote :

Attached.. thank you

Revision history for this message
Alfredo Moralejo (amoralej) wrote :

I've tried with a similar answer file and, unfortunately i can't reproduce the issue. Are you getting the same error consistently?

Revision history for this message
C (charlesclark1974) wrote :
Download full text (45.3 KiB)

I am hitting this in the Liberty packstack deploy

my answers file:
[general]

# Path to a public key to install on servers. If a usable key has not
# been installed on the remote servers, the user is prompted for a
# password and this key is installed so the password will not be
# required again.
CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub

# Default password to be used everywhere (overridden by passwords set
# for individual services or users).
CONFIG_DEFAULT_PASSWORD=

# Specify 'y' to install MariaDB. ['y', 'n']
CONFIG_MARIADB_INSTALL=y

# Specify 'y' to install OpenStack Image Service (glance). ['y', 'n']
CONFIG_GLANCE_INSTALL=y

# Specify 'y' to install OpenStack Block Storage (cinder). ['y', 'n']
CONFIG_CINDER_INSTALL=y

# Specify 'y' to install OpenStack Shared File System (manila). ['y',
# 'n']
CONFIG_MANILA_INSTALL=n

# Specify 'y' to install OpenStack Compute (nova). ['y', 'n']
CONFIG_NOVA_INSTALL=y

# Specify 'y' to install OpenStack Networking (neutron); otherwise,
# Compute Networking (nova) will be used. ['y', 'n']
CONFIG_NEUTRON_INSTALL=y

# Specify 'y' to install OpenStack Dashboard (horizon). ['y', 'n']
CONFIG_HORIZON_INSTALL=y

# Specify 'y' to install OpenStack Object Storage (swift). ['y', 'n']
CONFIG_SWIFT_INSTALL=y

# Specify 'y' to install OpenStack Metering (ceilometer). ['y', 'n']
CONFIG_CEILOMETER_INSTALL=y

# Specify 'y' to install OpenStack Data Processing (sahara). In case
# of sahara installation packstack also installs heat.['y', 'n']
CONFIG_SAHARA_INSTALL=n

# Specify 'y' to install OpenStack Orchestration (heat). ['y', 'n']
CONFIG_HEAT_INSTALL=n

# Specify 'y' to install OpenStack Database (trove) ['y', 'n']
CONFIG_TROVE_INSTALL=n

# Specify 'y' to install OpenStack Bare Metal Provisioning (ironic).
# ['y', 'n']
CONFIG_IRONIC_INSTALL=n

# Specify 'y' to install the OpenStack Client packages (command-line
# tools). An admin "rc" file will also be installed. ['y', 'n']
CONFIG_CLIENT_INSTALL=y

# Comma-separated list of NTP servers. Leave plain if Packstack
# should not install ntpd on instances.
CONFIG_NTP_SERVERS=

# Specify 'y' to install Nagios to monitor OpenStack hosts. Nagios
# provides additional tools for monitoring the OpenStack environment.
# ['y', 'n']
CONFIG_NAGIOS_INSTALL=y

# Comma-separated list of servers to be excluded from the
# installation. This is helpful if you are running Packstack a second
# time with the same answer file and do not want Packstack to
# overwrite these server's configurations. Leave empty if you do not
# need to exclude any servers.
EXCLUDE_SERVERS=

# Specify 'y' if you want to run OpenStack services in debug mode;
# otherwise, specify 'n'. ['y', 'n']
CONFIG_DEBUG_MODE=n

# Server on which to install OpenStack services specific to the
# controller role (for example, API servers or dashboard).
CONFIG_CONTROLLER_HOST=192.168.250.179

# List the servers on which to install the Compute service.
CONFIG_COMPUTE_HOSTS=192.168.250.180

# List of servers on which to install the network service such as
# Compute networking (nova network) or OpenStack Networking (neutron).
CONFIG_NETWORK_HOSTS=192.168.250.178

# Specify 'y' if you want to use VMware vCenter as hypervisor and
# storage; ot...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.