Invalid parameter domain on Keystone_tenant[services]

Bug #1609629 reported by Red Cricket
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-keystone
Invalid
Undecided
Unassigned

Bug Description

I have this simple puppet module that uses some openstack-keystone resource types:

class kilo_keystone(

    # Global Params
    $rabbit_hosts = '',
    $rabbit_userid = '',
    $rabbit_password = '',
    $controller_vip_name = '',
    $swift_vip_name = undef,
    $memcached_servers = '',
    $controller_vip_ip = '',

    # Keystone Params
    $keystone_db_user = '',
    $keystone_db_pass = '',
    $keystone_db_name = '',
    $keystone_ldap_user = '',
    $keystone_ldap_pass = '',
    $keystone_auth_token = '',
    $keystone_admin_user = '',
    $keystone_admin_password = '',
    $keystone_admin_email = '',

) {

    class {'keystone':
        admin_token => $keystone_auth_token,
        database_connection => "mysql://$keystone_db_user:$keystone_db_pass@$db_host:$db_port/$keystone_db_name",
        catalog_type => 'sql',
    }

# Adds the admin credential to keystone.
    class { 'keystone::roles::admin':
        email => '<email address hidden>',
        password => 'super_secret',
    }

# Installs the service user endpoint.
    class { 'keystone::endpoint':
        public_url => "http://$controller_vip_name:5000",
        admin_url => "http://$controller_vip_name:35357",
        internal_url => "http://$controller_vip_name:5000",
    }
}

I have these puppet modules installed on my puppet master (PE 3.7 yes I know that is old)

# puppet module list
/etc/puppetlabs/puppet/environments/production/modules
├── example42-network (v3.3.2)
├── openstack-keystone (v8.0.1)
├── openstack-openstacklib (v8.0.1)
├── puppet-staging (v1.0.7)
├── puppetlabs-apache (v1.10.0)
├── puppetlabs-apt (v2.2.2)
├── puppetlabs-concat (v2.2.0)
├── puppetlabs-inifile (v1.5.0)
├── puppetlabs-mysql (v3.8.0)
├── puppetlabs-postgresql (v4.8.0)
├── puppetlabs-rabbitmq (v5.4.0)
└── puppetlabs-stdlib (v4.12.0)
/etc/puppetlabs/puppet/modules
└── kilo_keystone (???)
/opt/puppet/share/puppet/modules
├── puppetlabs-pe_accounts (v2.0.2-8-g8acc04e)
├── puppetlabs-pe_concat (v1.1.2-4-g2b7bba2)
├── puppetlabs-pe_console_prune (v0.1.1-4-g293f45b)
├── puppetlabs-pe_inifile (v1.1.4-16-gcb39966)
├── puppetlabs-pe_java_ks (v1.2.4-35-g44fbb26)
├── puppetlabs-pe_postgresql (v3.4.4-15-g32e56ed)
├── puppetlabs-pe_razor (v0.2.1-9-g8d78ec2)
├── puppetlabs-pe_repo (v0.7.7-59-g4514315)
├── puppetlabs-pe_staging (v0.3.3-6-gbd9db2b)
└── puppetlabs-puppet_enterprise (v3.7.1-117-g9c48e73)

When I run puppet agent -t on a node I have assigned the kilo_keystone class I get this error:

# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter domain on Keystone_tenant[services] at /etc/puppetlabs/puppet/environments/production/modules/keystone/manifests/roles/admin.pp:103 on node svl-ost-mgmt-el7-001.example.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Revision history for this message
Emilien Macchi (emilienm) wrote :

It sounds like 'undef' for domain parameter in https://github.com/openstack/puppet-keystone/blob/stable/mitaka/manifests/roles/admin.pp#L102 doesn't work for you. Can you try to override it with "Default" for example?

Revision history for this message
Red Cricket (red-cricket-blog) wrote : Re: [Bug 1609629] Re: Invalid parameter domain on Keystone_tenant[services]
Download full text (4.7 KiB)

I tried hardcoding like so ...

 101 keystone_tenant { $service_tenant:

102 ensure => present,

103 enabled => true,

104 description => $service_tenant_desc,

105 #RBC domain => $service_project_domain,

106 domain => 'Default',

107 }

... I still get the error:

*Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Invalid parameter domain on Keystone_tenant[services] at
/etc/puppetlabs/puppet/environments/production/modules/keystone/manifests/roles/admin.pp:107
*

On Thu, Aug 4, 2016 at 5:37 AM, Emilien Macchi <email address hidden>
wrote:

> It sounds like 'undef' for domain parameter in
> https://github.com/openstack/puppet-
> keystone/blob/stable/mitaka/manifests/roles/admin.pp#L102 doesn't work
> for you. Can you try to override it with "Default" for example?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1609629
>
> Title:
> Invalid parameter domain on Keystone_tenant[services]
>
> Status in puppet-keystone:
> New
>
> Bug description:
> I have this simple puppet module that uses some openstack-keystone
> resource types:
>
> class kilo_keystone(
>
> # Global Params
> $rabbit_hosts = '',
> $rabbit_userid = '',
> $rabbit_password = '',
> $controller_vip_name = '',
> $swift_vip_name = undef,
> $memcached_servers = '',
> $controller_vip_ip = '',
>
> # Keystone Params
> $keystone_db_user = '',
> $keystone_db_pass = '',
> $keystone_db_name = '',
> $keystone_ldap_user = '',
> $keystone_ldap_pass = '',
> $keystone_auth_token = '',
> $keystone_admin_user = '',
> $keystone_admin_password = '',
> $keystone_admin_email = '',
>
> ) {
>
> class {'keystone':
> admin_token => $keystone_auth_token,
> database_connection =>
> "mysql://$keystone_db_user:$keystone_db_pass@
> $db_host:$db_port/$keystone_db_name",
> catalog_type => 'sql',
> }
>
> # Adds the admin credential to keystone.
> class { 'keystone::roles::admin':
> email => '<email address hidden>',
> password => 'super_secret',
> }
>
> # Installs the service user endpoint.
> class { 'keystone::endpoint':
> public_url => "http://$controller_vip_name:5000",
> admin_url => "http://$controller_vip_name:35357",
> internal_url => "http://$controller_vip_name:5000",
> }
> }
>
> I have these puppet modules installed on my puppet master (PE 3.7 yes
> I know that is old)
>
> # puppet module list
> /etc/puppetlabs/puppet/environments/production/modules
> ├── example42-network (v3.3.2)
> ├── openstack-keystone (v8.0.1)
> ├── openstack-openstacklib (v8.0.1)
> ├── puppet-stag...

Read more...

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

I'm closing this because the bug report has had no update for long and we've not seen this error in CI, but feel free to reopen this if this problem still affects you .

Changed in puppet-keystone:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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