Ask Your Question
2

[RDO][liberty] Invalid parameter public_address on Class[Sahara::Keystone::Auth]

asked 2015-11-05 02:38:03 -0500

idzzy gravatar image

Hello,

I am installing liberty by RDO packstack on 3 nodes(controller, compute, network). but packstack was failed with following error message.

Especially this part,

    Error: Invalid parameter public_address on Class[Sahara::Keystone::Auth]

Any ideas would be helpful for me.

# packstack --answer-file=packstack-answer-20151105-1520.txt
-- omit --
10.32.23.126_keystone.pp:                         [ ERROR ]
Applying Puppet manifests                         [ ERROR ]
ERROR : Error appeared during Puppet run: 10.32.23.126_keystone.pp
Error: Invalid parameter public_address on Class[Sahara::Keystone::Auth] at /var/tmp/packstack/6e38b1d842b7469994dee8f456e1ae50/manifests/10.32.23.126_keystone.pp:213 on node ckp201.mng.kvh.ne.jp
You will find full trace in log /var/tmp/packstack/20151105-165522-m7abhL/manifests/10.32.23.126_keystone.pp.log
Please check log file /var/tmp/packstack/20151105-165522-m7abhL/openstack-setup.log for more information

-

# tail /var/tmp/packstack/20151105-165522-m7abhL/manifests/10.32.23.126_keystone.pp.log
Warning: Scope(Class[Neutron::Keystone::Auth]): The internal_address parameter is deprecated, use internal_url instead.
Warning: Scope(Class[Neutron::Keystone::Auth]): The admin_address parameter is deprecated, use admin_url instead.
Warning: Scope(Class[Swift::Keystone::Auth]): The public_address parameter is deprecated, use public_url and public_url_s3 instead.
Warning: Scope(Class[Ceilometer::Keystone::Auth]): The public_address parameter is deprecated, use public_url instead.
Warning: Scope(Class[Ceilometer::Keystone::Auth]): The internal_address parameter is deprecated, use internal_url instead.
Warning: Scope(Class[Ceilometer::Keystone::Auth]): The admin_address parameter is deprecated, use admin_url instead.
Error: Invalid parameter public_address on Class[Sahara::Keystone::Auth] at /var/tmp/packstack/6e38b1d842b7469994dee8f456e1ae50/manifests/10.32.23.126_keystone.pp:213 on node ckp201.mng.kvh.ne.jp
Wrapped exception:
Invalid parameter public_address
Error: Invalid parameter public_address on Class[Sahara::Keystone::Auth] at /var/tmp/packstack/6e38b1d842b7469994dee8f456e1ae50/manifests/10.32.23.126_keystone.pp:213 on node ckp201.mng.kvh.ne.jp

-

# less /var/tmp/packstack/20151105-165522-m7abhL/openstack-setup.log
-- omit --
2015-11-05 16:57:19::ERROR::run_setup::1017::root:: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 1012, in main
    _main(options, confFile, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 660, in _main
    runSequences()
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 627, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 81, in runAllSequences
    sequence.run(config=self.CONF, messages=self.MESSAGES)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 109, in run
    step.run(config=config, messages=messages)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 50, in run
    self.function(config, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 209, in apply_puppet_manifest
    wait_for_puppet(currently_running, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 123, in wait_for_puppet
    validate_logfile(log)
  File "/usr/lib/python2.7/site-packages/packstack/modules/puppet.py", line 107, in validate_logfile
    raise PuppetError(message)
PuppetError: Error appeared during Puppet run: 10.32.23.126_keystone.pp
Error: Invalid parameter public_address on Class[Sahara::Keystone::Auth] at /var/tmp/packstack/6e38b1d842b7469994dee8f456e1ae50/manifests/10.32.23.126_keystone.pp:213 on ...
(more)
edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2015-11-20 13:31:34 -0500

Alan Pevec gravatar image

Please test with Packstack update in testing repo buildlogs.centos.org/centos/7/cloud/x86_64/openstack-liberty/

edit flag offensive delete link more

Comments

It works, Thank you.

idzzy gravatar imageidzzy ( 2015-11-25 02:00:17 -0500 )edit
1

answered 2015-11-06 10:16:10 -0500

d3ni3r gravatar image

Hi there. Same issue here when I enable SAHARA in Packstack's Answer File.

What I found so far is that there is already (29 days ago) a Sahara Commit (puppet-sahara) : https://github.com/openstack/puppet-sahara/commit/2417317d866a2428c8e9bfa1548d60a3d87616fe (https://github.com/openstack/puppet-s...)

So as it seems the parameters for manifest classes keystone::auth were updated, and Packstack is trying to use the deprecated parameters (E.g. public_address is now public url etc.)

This has happen since KILO release ... : "This patch removes parameters from main init and keystone::authclasses, which were marked as deprecated since Kilo release."

PS: Tried to locally modify the manifest @ /var/tmp/packstack/latest/manifests. vi /var/tmp/packstack/latest/manifests/192.168.27.110_keystone.pp with below :

class { '::ceilometer::keystone::auth':
  region           => hiera('CONFIG_KEYSTONE_REGION'),
  password         => hiera('CONFIG_CEILOMETER_KS_PW'),
  public_address   => hiera('CONFIG_KEYSTONE_HOST_URL'),
  admin_address    => hiera('CONFIG_KEYSTONE_HOST_URL'),
  internal_address => hiera('CONFIG_KEYSTONE_HOST_URL'),
}

class { '::sahara::keystone::auth':
  password         => hiera('CONFIG_SAHARA_KS_PW'),
# public_address   => hiera('CONFIG_SAHARA_HOST'), #Depreciated Paramater in this class Sahara::Keystone::Auth in manifest keystone.pp
  public_url       => hiera('CONFIG_SAHARA_HOST'),
  admin_address    => hiera('CONFIG_SAHARA_HOST'),
  internal_address => hiera('CONFIG_SAHARA_HOST'),
}

But RDO still gets the wrong manifest classes "keystone::auth" ... so I have no clue how to workaround this...

edit flag offensive delete link more
0

answered 2015-11-07 23:32:18 -0500

idzzy gravatar image

updated 2015-11-12 00:57:59 -0500

d3ni3r,

Thank you for the advice.

In my current case, This patch is already applied.

https://github.com/openstack/puppet-s...

/usr/share/openstack-puppet/modules/sahara/manifests/init.pp
/usr/share/openstack-puppet/modules/sahara/manifests/keystone/auth.pp

But I found not to apply latest patch to this file. So I updated like below.

/usr/lib/python2.7/site-packages/packstack/puppet/templates/keystone_sahara.pp

# diff keystone_sahara.pp.org keystone_sahara.pp
<   public_address   => hiera('CONFIG_SAHARA_HOST'),
<   admin_address    => hiera('CONFIG_SAHARA_HOST'),
<   internal_address => hiera('CONFIG_SAHARA_HOST'),
---
>   public_url       => hiera('CONFIG_SAHARA_HOST'),
>   admin_url        => hiera('CONFIG_SAHARA_HOST'),
>   internal_url     => hiera('CONFIG_SAHARA_HOST'),

when I run packstack again, the file in /tmp is

# grep -A 5 "sahara::keystone::auth" /var/tmp/packstack/latest/manifests/10.32.23.126_keystone.pp
class { '::sahara::keystone::auth':
  password         => hiera('CONFIG_SAHARA_KS_PW'),
  public_url       => hiera('CONFIG_SAHARA_HOST'),    <==
  admin_url       => hiera('CONFIG_SAHARA_HOST'),    <==
  internal_url    => hiera('CONFIG_SAHARA_HOST'),    <==
}

This has been already modified, but seems it's not included in latest package yet. https://github.com/openstack/packstac...

# rpm -q openstack-packstack-puppet
openstack-packstack-puppet-2015.2-0.1.dev1654.gcbbf46e.el7.noarch

I could pass this issue, but I have another problem, still not complete :(

Thank you.

edit flag offensive delete link more
0

answered 2015-11-29 10:51:36 -0500

sawangpongm gravatar image

Thank very much. Today I try to reinstall kilo version to another server but It also happen on kilo

ERROR : Error appeared during Puppet run: 192.168.1.2_keystone.pp
Error: Invalid parameter public_address on Class[Sahara::Keystone::Auth] at   /var/tmp/packstack/7cdd65ff91e34811a8503a6d93b07380/manifests/192.168.1.2_keystone.pp:212 on node cloud.itbakery.net

Any Explanation about this issues.

edit flag offensive delete link more

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

2 followers

Stats

Asked: 2015-11-05 02:38:03 -0500

Seen: 757 times

Last updated: Nov 29 '15