Join the Community
and take part in the story

Puppet error: CentOS 7: Install the Swift/S3 Gateway


#1

Hello ,

I followed this page to install Swift/S3 Gateway: http://docs.openio.io/17.04/install-swift-s3-centos/installation.html

Finally I got error when running puppet apply:

[root@gateway ~]# puppet apply --no-stringify_facts ~/openio-gw.pp
Error: Could not parse application options: invalid option: --no-stringify_facts

To check puppet:

[root@gateway ~]# rpm -qa | grep puppet
puppet-stdlib-4.9.0-1.el7.oio.noarch
puppet-openio-sds-4.0.15-1.el7.oio.noarch
puppet-gridinit-1.1.9-1.el7.oio.noarch
puppet-4.8.2-1.el7.noarch
[root@gateway ~]# 

Moreover, if I use lower version of pupper, I got the following error:

[root@gateway ~]# puppet apply --no-stringify_facts ~/openio-gw.pp
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Warning: Scope(Class[Keystone]): Keystone under Eventlet has been deprecated during the Kilo cycle. Support for deploying under eventlet will be dropped as of the M-release of OpenStack.
Error: Invalid parameter admin_password on Openiosds::Oioswift[oioswift-0] at /root/openio-gw.pp:93 on node io-x03
Wrapped exception:
Invalid parameter admin_password
Error: Invalid parameter admin_password on Openiosds::Oioswift[oioswift-0] at /root/openio-gw.pp:93 on node io-x03

Check puppet:

[root@gateway ~]# rpm -qa | grep puppet
puppet-gridinit-1.1.9-1.el7.oio.noarch
puppet-openio-sds-4.0.15-1.el7.oio.noarch
puppet-3.6.2-3.el7.noarch
puppet-stdlib-4.9.0-1.el7.oio.noarch

Can you please check if the replacement in my puppet scripts is complete:

[root@gateway ~]# cat openio-gw.pp 
$openio_proxy_url = "http://192.168.2.91:6006"
$admin_token = 'KEYSTONE_ADMIN_UUID'
$swift_passwd = 'SWIFT_PASS'
$admin_passwd = 'ADMIN_PASS'
$demo_passwd = 'DEMO_PASS'
$region = 'RegionOne'

# Deploy Openstack Keystone
class { 'keystone':
  admin_token         => $admin_token,
  admin_password      => $admin_passwd,
  database_connection => 'sqlite:////var/lib/keystone/keystone.db',

}

# Use Apache httpd service with mod_wsgi
class { 'keystone::wsgi::apache':
  ssl => false,
}

# Adds the admin credential to keystone.
class { 'keystone::roles::admin':
  email               => 'test@openio.io',
  password            => $admin_passwd,
  admin               => 'admin',
  admin_tenant        => 'admin',
  admin_user_domain   => 'admin',
  admin_project_domain => 'admin',
}

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

# Openstack Swift service credentials
keystone_user { 'swift':
  ensure   => present,
  enabled  => true,
  password => $swift_passwd,
}
keystone_user_role { 'swift@services':
  roles  => ['admin'],
  ensure => present
}
keystone_service { 'openio-swift':
  ensure      => present,
  type        => 'object-store',
  description => 'OpenIO SDS swift proxy',
}
keystone_endpoint { 'localhost-1/openio-swift':
  ensure       => present,
  type         => 'object-store',
  public_url   => "http://${ipaddress}:6007/v1.0/AUTH_%(tenant_id)s",
  admin_url    => "http://${ipaddress}:6007/v1.0/AUTH_%(tenant_id)s",
  internal_url => "http://${ipaddress}:6007/v1.0/AUTH_%(tenant_id)s",
}

# Demo account credentials
keystone_tenant { 'demo':
  ensure  => present,
  enabled => true,
}
keystone_user { 'demo':
  ensure  => present,
  enabled => true,
  password => $demo_passwd,
}
keystone_role { '_member_':
  ensure => present,
}
keystone_user_role { 'demo@demo':
  roles  => ['admin','_member_'],
  ensure => present
}

# Deploy OpenIO Swift/S3 gateway
class {'openiosds':}
openiosds::namespace {'OPENIO':
    ns => 'OPENIO',
}
openiosds::oioswift {'oioswift-0':
  ns                 => 'OPENIO',
  ipaddress          => '0.0.0.0',
  sds_proxy_url      => $openio_proxy_url,
  admin_password     => $swift_passwd,
  memcache_servers   => "${ipaddress}:6019",
  region_name        => $region,
  middleware_swift3 => {'location' => $region},
}
openiosds::memcached {'memcached-0':
  ns => 'OPENIO',
}

Btw, Merry Christmas!

Best regards,
Yongsheng


#2

Hi,
try to replace admin_password with password in the openiosds::oioswift section.


#3

Ok, I replaced puppet to a lower versio, replaced admin_password with password and then puppet apply. But I’m not sure if it has been applied successfully due to an error on keystone service and a bunch of later skippings.

[root@gateway ~]# puppet apply --no-stringify_facts ~/openio-gw.pp 
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Warning: Scope(Class[Keystone]): Keystone under Eventlet has been deprecated during the Kilo cycle. Support for deploying under eventlet will be dropped as of the M-release of OpenStack.
Notice: Compiled catalog for gateway in environment production in 3.22 seconds
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
   (at /usr/share/ruby/vendor_ruby/puppet/type.rb:816:in `set_default')
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/Package[openstack-swift-proxy]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/Package[openio-sds-swift-plugin-swift3]/ensure: created
Notice: /Stage[main]/Gridinit::Config/File[/var/lib/gridinit]/ensure: created
Notice: /Stage[main]/Gridinit::Config/File[/etc/gridinit.d]/ensure: created
Notice: /Stage[main]/Gridinit::Config/File[/etc/gridinit.conf]/ensure: defined content as '{md5}fe273a805f39d5fea8db32331b6c736b'
Notice: /Stage[main]/Apache::Mod::Mime/Package[mailcap]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Memcached[memcached-0]/Package[memcached]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/Package[openio-sds-swift]/ensure: created
Notice: /Stage[main]/Openstacklib::Openstackclient/Package[python-openstackclient]/ensure: created
Notice: /Stage[main]/Openiosds::Install/Package[openio-sds-rsyslog]/ensure: created
Notice: /Stage[main]/Openiosds::Install/Package[openio-sds-logrotate]/ensure: created
Notice: /Stage[main]/Openiosds::Install/File[/var/spool/oio]/ensure: created
Notice: /Stage[main]/Gridinit::Install/Package[openio-gridinit]/ensure: created
Notice: /Stage[main]/Gridinit::Config/File[/var/spool/gridinit]/ensure: created
Notice: /Stage[main]/Gridinit::Config/File[/var/log/gridinit]/ensure: created
Notice: /Stage[main]/Gridinit::Service/Service[gridinit]/ensure: ensure changed 'stopped' to 'running'
Notice: /Stage[main]/Openiosds::Install/File[/etc/oio/sds.conf.d]/ensure: created
Notice: /Stage[main]/Apache/Package[httpd]/ensure: created
Notice: /Stage[main]/Apache::Mod::Wsgi/Apache::Mod[wsgi]/Package[mod_wsgi]/ensure: created
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[auth_digest]/File[auth_digest.load]/ensure: defined content as '{md5}df9e85f8da0b239fe8e698ae7ead4f60'
Notice: /Stage[main]/Apache::Mod::Mime/Apache::Mod[mime]/File[mime.load]/ensure: defined content as '{md5}e36257b9efab01459141d423cae57c7c'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[expires]/File[expires.load]/ensure: defined content as '{md5}f0825bad1e470de86ffabeb86dcc5d95'
Notice: /Stage[main]/Apache::Mod::Dav/Apache::Mod[dav]/File[dav.load]/ensure: defined content as '{md5}588e496251838c4840c14b28b5aa7881'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_owner]/File[authz_owner.load]/ensure: defined content as '{md5}f30a9be1016df87f195449d9e02d1857'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_groupfile]/File[authz_groupfile.load]/ensure: defined content as '{md5}ae005a36b3ac8c20af36c434561c8a75'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authn_dbm]/File[authn_dbm.load]/ensure: defined content as '{md5}90ee8f8ef1a017cacadfda4225e10651'
Notice: /Stage[main]/Apache::Mod::Authn_core/Apache::Mod[authn_core]/File[authn_core.load]/ensure: defined content as '{md5}704d6e8b02b0eca0eba4083960d16c52'
Notice: /Stage[main]/Apache::Mod::Authz_user/Apache::Mod[authz_user]/File[authz_user.load]/ensure: defined content as '{md5}63594303ee808423679b1ea13dd5a784'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[log_config]/File[log_config.load]/ensure: defined content as '{md5}785d35cb285e190d589163b45263ca89'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[logio]/File[logio.load]/ensure: defined content as '{md5}084533c7a44e9129d0e6df952e2472b6'
Notice: /Stage[main]/Apache::Mod::Mime/File[mime.conf]/ensure: defined content as '{md5}9da85e58f3bd6c780ce76db603b7f028'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[access_compat]/File[access_compat.load]/ensure: defined content as '{md5}d5feb88bec4570e2dbc41cce7e0de003'
Notice: /Stage[main]/Apache::Mod::Version/Apache::Mod[version]/File[version.load]/ensure: defined content as '{md5}1c9243de22ace4dc8266442c48ae0c92'
Notice: /Stage[main]/Apache::Mod::Setenvif/File[setenvif.conf]/ensure: defined content as '{md5}c7ede4173da1915b7ec088201f030c28'
Notice: /Stage[main]/Apache::Mod::Actions/Apache::Mod[actions]/File[actions.load]/ensure: defined content as '{md5}599866dfaf734f60f7e2d41ee8235515'
Notice: /Stage[main]/Apache::Mod::Deflate/File[deflate.conf]/ensure: defined content as '{md5}a045d750d819b1e9dae3fbfb3f20edd5'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_core]/File[authz_core.load]/ensure: defined content as '{md5}39942569bff2abdb259f9a347c7246bc'
Notice: /Stage[main]/Apache::Mod::Negotiation/File[negotiation.conf]/ensure: defined content as '{md5}47284b5580b986a6ba32580b6ffb9fd7'
Notice: /Stage[main]/Apache::Mod::Alias/Apache::Mod[alias]/File[alias.load]/ensure: defined content as '{md5}3cf2fa309ccae4c29a4b875d0894cd79'
Notice: /Stage[main]/Apache::Mod::Env/Apache::Mod[env]/File[env.load]/ensure: defined content as '{md5}d74184d40d0ee24ba02626a188ee7e1a'
Notice: /Stage[main]/Apache::Mod::Negotiation/Apache::Mod[negotiation]/File[negotiation.load]/ensure: defined content as '{md5}d262ee6a5f20d9dd7f87770638dc2ccd'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_dbm]/File[authz_dbm.load]/ensure: defined content as '{md5}c1363277984d22f99b70f7dce8753b60'
Notice: /Stage[main]/Apache::Mod::Dir/File[dir.conf]/ensure: defined content as '{md5}c741d8ea840e6eb999d739eed47c69d7'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[usertrack]/File[usertrack.load]/ensure: defined content as '{md5}e95fbbf030fabec98b948f8dc217775c'
Notice: /Stage[main]/Apache::Mod::Prefork/File[/etc/httpd/conf.modules.d/prefork.conf]/ensure: defined content as '{md5}109c4f51dac10fc1b39373855e566d01'
Notice: /Stage[main]/Apache::Mod::Vhost_alias/Apache::Mod[vhost_alias]/File[vhost_alias.load]/ensure: defined content as '{md5}eca907865997d50d5130497665c3f82e'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[substitute]/File[substitute.load]/ensure: defined content as '{md5}8077c34a71afcf41c8fc644830935915'
Notice: /Stage[main]/Apache::Mod::Setenvif/Apache::Mod[setenvif]/File[setenvif.load]/ensure: defined content as '{md5}ec6c99f7cc8e35bdbcf8028f652c9f6d'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[unixd]/File[unixd.load]/ensure: defined content as '{md5}0e8468ecc1265f8947b8725f4d1be9c0'
Notice: /Stage[main]/Apache::Mod::Deflate/Apache::Mod[deflate]/File[deflate.load]/ensure: defined content as '{md5}2d1a1afcae0c70557251829a8586eeaf'
Notice: /Stage[main]/Apache::Mod::Wsgi/Apache::Mod[wsgi]/File[wsgi.load]/ensure: defined content as '{md5}e1795e051e7aae1f865fde0d3b86a507'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[auth_basic]/File[auth_basic.load]/ensure: defined content as '{md5}494bcf4b843f7908675d663d8dc1bdc8'
Notice: /Stage[main]/Apache::Mod::Prefork/Apache::Mpm[prefork]/File[/etc/httpd/conf.modules.d/prefork.load]/ensure: defined content as '{md5}157529aafcf03fa491bc924103e4608e'
Notice: /Stage[main]/Apache::Mod::Authn_file/Apache::Mod[authn_file]/File[authn_file.load]/ensure: defined content as '{md5}d41656680003d7b890267bb73621c60b'
Notice: /Stage[main]/Apache::Mod::Ext_filter/Apache::Mod[ext_filter]/File[ext_filter.load]/ensure: defined content as '{md5}76d5e0ac3411a4be57ac33ebe2e52ac8'
Notice: /Stage[main]/Apache::Mod::Wsgi/File[wsgi.conf]/ensure: defined content as '{md5}8b3feb3fc2563de439920bb2c52cbd11'
Notice: /Stage[main]/Apache::Mod::Speling/Apache::Mod[speling]/File[speling.load]/ensure: defined content as '{md5}f82e9e6b871a276c324c9eeffcec8a61'
Notice: /Stage[main]/Apache::Mod::Dir/Apache::Mod[dir]/File[dir.load]/ensure: defined content as '{md5}1bfb1c2a46d7351fc9eb47c659dee068'
Notice: /Stage[main]/Apache::Mod::Dav_fs/Apache::Mod[dav_fs]/File[dav_fs.load]/ensure: defined content as '{md5}2996277c73b1cd684a9a3111c355e0d3'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[include]/File[include.load]/ensure: defined content as '{md5}88095a914eedc3c2c184dd5d74c3954c'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[systemd]/File[systemd.load]/ensure: defined content as '{md5}26e5d44aae258b3e9d821cbbbd3e2826'
Notice: /Stage[main]/Apache::Mod::Alias/File[alias.conf]/ensure: defined content as '{md5}983e865be85f5e0daaed7433db82995e'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_host]/File[authz_host.load]/ensure: defined content as '{md5}d1045f54d2798499ca0f030ca0eef920'
Notice: /Stage[main]/Apache::Mod::Suexec/Apache::Mod[suexec]/File[suexec.load]/ensure: defined content as '{md5}c7d5c61c534ba423a79b0ae78ff9be35'
Notice: /Stage[main]/Apache::Mod::Cache/Apache::Mod[cache]/File[cache.load]/ensure: defined content as '{md5}01e4d392225b518a65b0f7d6c4e21d29'
Notice: /Stage[main]/Apache::Mod::Rewrite/Apache::Mod[rewrite]/File[rewrite.load]/ensure: defined content as '{md5}26e2683352fc1599f29573ff0d934e79'
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.d/autoindex.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.d/userdir.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.d/welcome.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.d/README]/ensure: removed
Notice: /Stage[main]/Apache::Mod::Autoindex/Apache::Mod[autoindex]/File[autoindex.load]/ensure: defined content as '{md5}515cdf5b573e961a60d2931d39248648'
Notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authn_anon]/File[authn_anon.load]/ensure: defined content as '{md5}bf57b94b5aec35476fc2a2dc3861f132'
Notice: /Stage[main]/Apache::Mod::Autoindex/File[autoindex.conf]/ensure: defined content as '{md5}2421a3c6df32c7e38c2a7a22afdf5728'
Notice: /Stage[main]/Apache::Mod::Filter/Apache::Mod[filter]/File[filter.load]/ensure: defined content as '{md5}66a1e2064a140c3e7dca7ac33877700e'
Notice: /Stage[main]/Apache::Mod::Mime_magic/File[mime_magic.conf]/ensure: defined content as '{md5}b258529b332429e2ff8344f726a95457'
Notice: /Stage[main]/Apache::Mod::Mime_magic/Apache::Mod[mime_magic]/File[mime_magic.load]/ensure: defined content as '{md5}cb8670bb2fb352aac7ebf3a85d52094c'
Notice: /Stage[main]/Keystone/Package[keystone]/ensure: created
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::install::end]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Keystone/File[/etc/keystone/fernet-keys]/ensure: created
Notice: /Stage[main]/Keystone::Wsgi::Apache/File[/var/www/cgi-bin/keystone]/ensure: created
Notice: /Stage[main]/Keystone::Wsgi::Apache/File[keystone_wsgi_admin]/ensure: defined content as '{md5}d6dda52b0e14d80a652ecf42686d3962'
Notice: /Stage[main]/Keystone::Wsgi::Apache/File[keystone_wsgi_main]/ensure: defined content as '{md5}072422f0d75777ed1783e6910b3ddc58'
Notice: /Stage[main]/Keystone/Keystone_config[fernet_tokens/key_repository]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[catalog/driver]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[ssl/enable]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[token/provider]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[DEFAULT/public_port]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[DEFAULT/admin_bind_host]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[eventlet_server/public_workers]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[catalog/template_file]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[token/driver]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[DEFAULT/public_bind_host]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[DEFAULT/admin_token]/ensure: created
Notice: /Stage[main]/Apache/Apache::Vhost[default]/Concat[15-default.conf]/File[/etc/httpd/conf.d/15-default.conf]/ensure: defined content as '{md5}a430bf4e003be964b419e7aea251c6c4'
Notice: /Stage[main]/Keystone::Logging/Oslo::Log[keystone_config]/Keystone_config[DEFAULT/log_dir]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[credential/key_repository]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[DEFAULT/admin_port]/ensure: created
Notice: /Stage[main]/Keystone::Wsgi::Apache/Apache::Vhost[keystone_wsgi_admin]/Concat[10-keystone_wsgi_admin.conf]/File[/etc/httpd/conf.d/10-keystone_wsgi_admin.conf]/ensure: defined content as '{md5}20a0566dfacfb753113bede2483e83b0'
Notice: /Stage[main]/Keystone::Wsgi::Apache/Apache::Vhost[keystone_wsgi_main]/Concat[10-keystone_wsgi_main.conf]/File[/etc/httpd/conf.d/10-keystone_wsgi_main.conf]/ensure: defined content as '{md5}2c23066234d4e1a4d9490916ef2d01f0'
Notice: /Stage[main]/Keystone/Keystone_config[token/expiration]/ensure: created
Notice: /Stage[main]/Keystone::Policy/Oslo::Policy[keystone_config]/Keystone_config[oslo_policy/policy_file]/ensure: created
Notice: /Stage[main]/Keystone/Keystone_config[eventlet_server/admin_workers]/ensure: created
Notice: /Stage[main]/Keystone::Db/Oslo::Db[keystone_config]/Keystone_config[database/connection]/ensure: created
Notice: /Stage[main]/Apache::Mod::Dav_fs/File[dav_fs.conf]/ensure: defined content as '{md5}899a57534f3d84efa81887ec93c90c9b'
Notice: /Stage[main]/Keystone/Keystone_config[token/revoke_by_id]/ensure: created
Notice: /Stage[main]/Apache/Concat[/etc/httpd/conf/ports.conf]/File[/etc/httpd/conf/ports.conf]/ensure: defined content as '{md5}ebe9c0959cf4dc052f42a543252054c7'
Notice: /Stage[main]/Apache/File[/etc/httpd/conf/httpd.conf]/content: content changed '{md5}f5e7449c0f17bc856e86011cb5d152ba' to '{md5}920f79515719d0d9fcd3ee77b4a08fb7'
Notice: /Stage[main]/Main/Openiosds::Namespace[OPENIO]/File[/var/spool/oio/sds]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Namespace[OPENIO]/File[/var/lib/oio/sds]/mode: mode changed '0750' to '0755'
Notice: /Stage[main]/Main/Openiosds::Namespace[OPENIO]/File[/var/lib/oio/sds/OPENIO]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Namespace[OPENIO]/File[/var/log/oio/sds]/mode: mode changed '0755' to '0751'
Notice: /Stage[main]/Main/Openiosds::Namespace[OPENIO]/File[/run/oio/sds]/mode: mode changed '0750' to '0755'
Notice: /Stage[main]/Main/Openiosds::Namespace[OPENIO]/File[/var/spool/oio/sds/OPENIO]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Memcached[memcached-0]/Openiosds::Service[OPENIO-memcached-0]/File[/var/spool/oio/sds/OPENIO/memcached-0]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Namespace[OPENIO]/File[/var/lib/oio/sds/OPENIO/coredump]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Namespace[OPENIO]/File[/var/log/oio/sds/OPENIO]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/Openiosds::Service[OPENIO-oioswift-0]/File[/var/log/oio/sds/OPENIO/oioswift-0]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/Openiosds::Service[OPENIO-oioswift-0]/File[/var/spool/oio/sds/OPENIO/oioswift-0]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Namespace[OPENIO]/File[/etc/oio/sds/OPENIO]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Memcached[memcached-0]/Openiosds::Service[OPENIO-memcached-0]/File[/etc/oio/sds/OPENIO/memcached-0]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/Openiosds::Service[OPENIO-oioswift-0]/File[/etc/oio/sds/OPENIO/oioswift-0]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/File[/etc/swift/swift.conf]/mode: mode changed '0640' to '0644'
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/File[/etc/oio/sds/OPENIO/oioswift-0/proxy-server.conf]/ensure: defined content as '{md5}e5768e398ed18df8ae3420c2f689dc1e'
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/Gridinit::Program[OPENIO-oioswift-0]/File[/etc/gridinit.d/OPENIO-oioswift-0]/ensure: defined content as '{md5}4adfa463eb16ce522ec5227ccafd1eb1'
Notice: /Stage[main]/Main/Openiosds::Memcached[memcached-0]/Openiosds::Service[OPENIO-memcached-0]/File[/var/log/oio/sds/OPENIO/memcached-0]/ensure: created
Notice: /Stage[main]/Main/Openiosds::Memcached[memcached-0]/Gridinit::Program[OPENIO-memcached-0]/File[/etc/gridinit.d/OPENIO-memcached-0]/ensure: defined content as '{md5}ddac61972e5662cab288f78eb40fd77c'
Notice: /Stage[main]/Gridinit::Reload/Exec[gridinitctl_reload]/returns: executed successfully
Notice: /Stage[main]/Gridinit::Reload/Exec[gridinitctl_reload]: Triggered 'refresh' from 3 events
Notice: /Stage[main]/Main/Openiosds::Memcached[memcached-0]/Gridinit::Program[OPENIO-memcached-0]/Exec[OPENIO-memcached-0]/returns: executed successfully
Notice: /Stage[main]/Main/Openiosds::Memcached[memcached-0]/Gridinit::Program[OPENIO-memcached-0]/Exec[OPENIO-memcached-0]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/Gridinit::Program[OPENIO-oioswift-0]/Exec[OPENIO-oioswift-0]/returns: executed successfully
Notice: /Stage[main]/Main/Openiosds::Oioswift[oioswift-0]/Gridinit::Program[OPENIO-oioswift-0]/Exec[OPENIO-oioswift-0]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::config::end]: Triggered 'refresh' from 22 events
Notice: /Stage[main]/Keystone/Exec[keystone-manage fernet_setup]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Keystone::Db::Sync/Exec[keystone-manage db_sync]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::dbsync::end]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Keystone/Exec[keystone-manage bootstrap]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::service::begin]: Triggered 'refresh' from 5 events
Error: Could not start Service[keystone]: Execution of '/usr/bin/systemctl start openstack-keystone' returned 5: Failed to start openstack-keystone.service: Unit not found.
Wrapped exception:
Execution of '/usr/bin/systemctl start openstack-keystone' returned 5: Failed to start openstack-keystone.service: Unit not found.
Error: /Stage[main]/Keystone::Service/Service[keystone]/ensure: change from stopped to running failed: Could not start Service[keystone]: Execution of '/usr/bin/systemctl start openstack-keystone' returned 5: Failed to start openstack-keystone.service: Unit not found.
Notice: /Stage[main]/Keystone::Service/Service[keystone]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Apache::Mod::Cgi/Apache::Mod[cgi]/File[cgi.load]/ensure: defined content as '{md5}ac20c5c5779b37ab06b480d6485a0881'
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.modules.d/00-proxy.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.modules.d/01-cgi.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.modules.d/00-mpm.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.modules.d/00-systemd.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.modules.d/10-wsgi.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.modules.d/00-base.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.modules.d/00-lua.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/httpd/conf.modules.d/00-dav.conf]/ensure: removed
Notice: /Stage[main]/Apache::Service/Service[httpd]/ensure: ensure changed 'stopped' to 'running'
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::service::end]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Keystone::Deps/Anchor[keystone::service::end]: Skipping because of failed dependencies
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::service::end]: Triggered 'refresh' from 3 events
Notice: /Stage[main]/Main/Keystone_role[_member_]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Main/Keystone_role[_member_]: Skipping because of failed dependencies
Notice: /Stage[main]/Keystone::Roles::Admin/Keystone_tenant[services]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Keystone::Roles::Admin/Keystone_tenant[services]: Skipping because of failed dependencies
Notice: /Stage[main]/Keystone::Roles::Admin/Keystone_role[admin]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Keystone::Roles::Admin/Keystone_role[admin]: Skipping because of failed dependencies
Notice: /Stage[main]/Main/Keystone_tenant[demo]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Main/Keystone_tenant[demo]: Skipping because of failed dependencies
Notice: /Stage[main]/Main/Keystone_service[openio-swift]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Main/Keystone_service[openio-swift]: Skipping because of failed dependencies
Notice: /Stage[main]/Keystone::Roles::Admin/Keystone_domain[admin]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Keystone::Roles::Admin/Keystone_domain[admin]: Skipping because of failed dependencies
Notice: /Stage[main]/Keystone::Roles::Admin/Keystone_tenant[admin]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Keystone::Roles::Admin/Keystone_tenant[admin]: Skipping because of failed dependencies
Notice: /Stage[main]/Keystone::Roles::Admin/Keystone_user[admin]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Keystone::Roles::Admin/Keystone_user[admin]: Skipping because of failed dependencies
Notice: /Stage[main]/Keystone::Roles::Admin/Keystone_user_role[admin@admin]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Keystone::Roles::Admin/Keystone_user_role[admin@admin]: Skipping because of failed dependencies
Notice: /Stage[main]/Main/Keystone_user[demo]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Main/Keystone_user[demo]: Skipping because of failed dependencies
Notice: /Stage[main]/Main/Keystone_user_role[demo@demo]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Main/Keystone_user_role[demo@demo]: Skipping because of failed dependencies
Notice: /Stage[main]/Keystone::Endpoint/Keystone::Resource::Service_identity[keystone]/Keystone_service[keystone::identity]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Keystone::Endpoint/Keystone::Resource::Service_identity[keystone]/Keystone_service[keystone::identity]: Skipping because of failed dependencies
Notice: /Stage[main]/Keystone::Endpoint/Keystone::Resource::Service_identity[keystone]/Keystone_endpoint[RegionOne/keystone::identity]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Keystone::Endpoint/Keystone::Resource::Service_identity[keystone]/Keystone_endpoint[RegionOne/keystone::identity]: Skipping because of failed dependencies
Notice: /Stage[main]/Main/Keystone_endpoint[localhost-1/openio-swift]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Main/Keystone_endpoint[localhost-1/openio-swift]: Skipping because of failed dependencies
Notice: /Stage[main]/Main/Keystone_user[swift]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Main/Keystone_user[swift]: Skipping because of failed dependencies
Notice: /Stage[main]/Main/Keystone_user_role[swift@services]: Dependency Service[keystone] has failures: true
Warning: /Stage[main]/Main/Keystone_user_role[swift@services]: Skipping because of failed dependencies
Notice: Finished catalog run in 572.55 seconds

#4

what’s the possible reason for this bad request?

[root@gateway ~]# swift -A http://127.0.0.1:6007/auth/v1.0 -U demo:demo -K DEMO_PASS stat
Auth GET failed: http://127.0.0.1:6007/auth/v1.0 400 Bad Request  [first 60 chars of response] <html><h1>Bad Request</h1><p>The server could not comply wit
Failed Transaction ID: tx18a65407f9704b64816a0-005a40c5c2

#5

This command is for Tempauth environment (testing and development). You have to follow the instructions for Keystone.


#6

Yes, I would guess demo:demo are the tenant and user defined for keystone instead of tempauth. However, keystone service doesn’t exist and of course failed to start up …


#7

This warning may tell something. The installation page is suggesting to install Pike version but here it says not supported from M version.

Warning: Scope(Class[Keystone]): Keystone under Eventlet has been deprecated during the Kilo cycle. Support for deploying under eventlet will be dropped as of the M-release of OpenStack.


#8

Hello,

Just update my question. Is there any idea why keystone service failed to deploy and start ?

Error: Could not start Service[keystone]: Execution of '/usr/bin/systemctl start openstack-keystone' returned 5: Failed to start openstack-keystone.service: Unit not found.
Wrapped exception:
Execution of '/usr/bin/systemctl start openstack-keystone' returned 5: Failed to start openstack-keystone.service: Unit not found.
Error: /Stage[main]/Keystone::Service/Service[keystone]/ensure: change from stopped to running failed: Could not start Service[keystone]: Execution of '/usr/bin/systemctl start openstack-keystone' returned 5: Failed to start openstack-keystone.service: Unit not found.

Best regards,
Yongsheng


#9

With the question above, I followed the instructions for keystone.
The exported variables are as the same as in puppet scripts

[root@gateway ~]# cat keystonerc_demo 
export OS_TENANT_NAME=demo
export OS_USERNAME=demo
export OS_PASSWORD=DEMO_PASS
export OS_AUTH_URL=http://127.0.0.1:5000/v2.0

ran and got

[root@gateway ~]# swift stat
Unauthorized. Check username, password and tenant name/id.