Skip to content

Instantly share code, notes, and snippets.

class nova::params {
case $::osfamily {
'RedHat': {
# package names
$api_package_name = false
$cert_package_name = false
$common_package_name = 'openstack-nova'
$compute_package_name = false
$doc_package_name = 'openstack-nova-doc'
file { '/etc/nova/api-paste.ini':
content => template('nova/api-paste.ini.erb'),
require => Class['nova'],
notify => Service['nova-api'],
}
2012-04-12 16:50:40 21718 DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [12/Apr/2012 16:50:40] "POST /v1/images HTTP/1.1" 500 3864 0.741307
2012-04-12 16:51:23 21718 DEBUG [glance.api.middleware.version_negotiation] Processing request: GET /v1/images/detail Accept:
2012-04-12 16:51:23 21718 DEBUG [glance.api.middleware.version_negotiation] Matched versioned URI. Version: 1.0
2012-04-12 16:51:23 21718 DEBUG [keystone.middleware.auth_token] Authenticating user token
2012-04-12 16:51:23 21718 DEBUG [keystone.middleware.auth_token] Removing headers from request environment: X-Identity-Status,X-Tenant-Id,X-Tenant-Name,X-User-Id,X-User-Name,X-Roles,X-User,X-Tenant,X-Role
2012-04-12 16:51:23 21718 DEBUG [routes.middleware] Matched GET /images/detail
2012-04-12 16:51:23 21718 DEBUG [routes.middleware] Route path: '/images/detail', defaults: {'action': u'detail', 'controller': <glance.common.wsgi.Resource object at 0x23b4cd0>}
2012-04-12 16:51:23 21718 DEBUG [routes.middleware] Match dict: {'actio
# glance-manage db_sync
# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2444
Server version: 5.5.22-0ubuntu1 (Ubuntu)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
exec { 'glance-manage db_sync':
path => '/usr/bin',
refreshonly => true.
logoutput => on_failure,
subscribe => [Package['glance'], File['/etc/glance/glance-registry.conf']],
notify => Service['glance-registry'],
}
[root@ip-10-234-90-4 ec2-user]# service openstack-nova-compute.service status
Redirecting to /bin/systemctl status openstack-nova-compute.service.service
openstack-nova-compute.service.service
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)
[root@ip-10-234-90-4 ec2-user]# service openstack-nova-compute.service stop
Redirecting to /bin/systemctl stop openstack-nova-compute.service.service
[root@ip-10-234-90-4 ec2-user]# service openstack-nova-compute.service start
Redirecting to /bin/systemctl start openstack-nova-compute.service.service
Failed to issue method call: Unit openstack-nova-compute.service.service failed to load: No such file or directory. See system logs and 'systemctl status openstack-nova-compute.service.service' for details.
$required_classes = split(inline_template("
<%= ${munged_pipelines}.collect do |x|
'swift::proxy::' + x }.join(',')
%>"), ',')
version = RUBY_VERSION.to_s.sub(/\.\d+$/, '')
$:.find do |dir|
dir =~ /#{File.join("site_ruby", version)}$/
end
+ LOG.info("Attaching device with virsh because attachDevice does not work")
+ device_path = connection_info['data']['device_path']
+ utils.execute('virsh', "attach-disk", instance_name, device_path, mount_device, run_as_root=True)
- virt_dom.attachDevice(xml)
puppet module install puppetlabs-openstack
Preparing to install into /home/localadmin/.puppet/modules ...
Downloading from http://forge.puppetlabs.com ...
Error: Could not install module 'puppetlabs-openstack' (latest: v0.1.0)
Dependency 'ripienaar-concat' (v0.1.0) would overwrite /home/localadmin/.puppet/modules/concat
Use `puppet module install --dir <DIR>` to install modules elsewhere
Use `puppet module install --ignore-dependencies` to install only this module