Could not prefetch keystone_tenant provider

asked 2015-12-01 08:01:11 -0500

mathias gravatar image

I am trying to install an OpenStack controller node with Puppet. To set up keystone I use openstack/puppet-keystone and the following manifest:

  class { 'openstack_extras::repo::debian::ubuntu':
    release => 'liberty',
    package_require => true,
  }

  Class['openstack_extras::repo::debian::ubuntu'] -> Class['keystone']
  Class['openstack_extras::repo::debian::ubuntu'] -> Keystone_Tenant <| |> 
  class { 'keystone':
    verbose             => true,
    catalog_type        => 'sql',
    admin_token         => $admin_token,
    database_connection => "$database_driver://$database_user:$database_pass@$database_host:$database_port/$database_name",
  }

  keystone_tenant { 'admin':
    ensure      => present,
    enabled     => true,
    description => 'admin tenant',
    domain      => 'Default',
  }

As a result I get this:

Debug: /Stage[main]/Openstack_extras::Repo::Debian::Ubuntu/before: requires Keystone_tenant[admin]
Debug: /Stage[main]/Openstack_extras::Repo::Debian::Ubuntu/Exec[installing ubuntu-cloud-keyring]/subscribe: subscribes to File[/etc/apt/sources.list.d/ubuntu-cloud-archive.list]
Debug: /Stage[main]/Openstack_extras::Repo::Debian::Ubuntu/Exec[installing ubuntu-cloud-keyring]/notify: subscribes to Exec[apt_update]
Debug: /Stage[main]/Apt/File[sources.list]/notify: subscribes to Class[Apt::Update]
Debug: /Stage[main]/Apt/File[sources.list.d]/notify: subscribes to Class[Apt::Update]
Debug: /Stage[main]/Apt/File[preferences]/notify: subscribes to Class[Apt::Update]
Debug: /Stage[main]/Apt/File[preferences.d]/notify: subscribes to Class[Apt::Update]
Debug: /Stage[main]/Apt/Apt::Setting[conf-update-stamp]/File[/etc/apt/apt.conf.d/15update-stamp]/notify: subscribes to Class[Apt::Update]
Debug: /Stage[main]/Openstack_extras::Repo::Debian::Ubuntu/Apt::Source[ubuntu-cloud-archive]/Apt::Setting[list-ubuntu-cloud-archive]/File[/etc/apt/sources.list.d/ubuntu-cloud-archive.list]/notify: subscribes to Class[Apt::Update]
Debug: /Stage[main]/Openstack_extras::Repo::Debian::Ubuntu/Apt::Source[ubuntu-cloud-archive]/Apt::Setting[list-ubuntu-cloud-archive]/File[/etc/apt/sources.list.d/ubuntu-cloud-archive.list]: Autorequiring File[sources.list.d]
Info: Applying configuration version '1448971073'
Debug: Prefetching openstack resources for keystone_tenant
Debug: Executing '/usr/bin/openstack project list --quiet --format csv --long'
2015-12-01 11:57:55.081 5549 INFO eventlet.wsgi.server [req-90dcca33-65a0-47f9-80b6-256cb8ae5a8f - - - - -] 127.0.0.1 - - [01/Dec/2015 11:57:55] "GET /v2.0/projects HTTP/1.1" 404 342 0.010846
Error: Could not prefetch keystone_tenant provider 'openstack': Execution of '/usr/bin/openstack project list --quiet --format csv --long' returned 1: The resource could not be found. (HTTP 404) (Request-ID: req-90dcca33-65a0-47f9-80b6-256cb8ae5a8f)
Debug: Executing '/usr/bin/openstack project create --format shell admin --enable --description admin tenant --domain Default'
2015-12-01 11:57:55.813 5550 INFO eventlet.wsgi.server [req-051d027a-cba6-4734-b983-037821b9b4e3 - - - - -] 127.0.0.1 - - [01/Dec/2015 11:57:55] "GET /v2.0/domains/Default HTTP/1.1" 404 342 0.012325
2015-12-01 11:57:55.823 5550 INFO eventlet.wsgi.server [req-67166220-9af1-4809-b6b6-dc4177857c8f - - - - -] 127.0.0.1 - - [01/Dec/2015 11:57:55] "GET /v2.0/domains?name=Default HTTP/1.1" 404 342 0.002898
Error: No project admin with domain Default found
Error: /Stage[main]/Identity/Keystone_tenant[admin]/ensure: change from absent to present failed: No project admin with domain Default found
Debug: Finishing transaction 35060520
Debug: Storing state
Debug: Stored state in 0.16 seconds
Notice: Finished catalog run in 1.87 seconds
Debug: Using cached connection for https://pp-master.openstacklocal:8140
Debug: Caching connection for https://pp-master.openstacklocal:8140
Debug: Closing connection for https://pp-master.openstacklocal:8140
ubuntu@controller1:~$

I checked the keystone.conf file which ... (more)

edit retag flag offensive close merge delete