Ask Your Question
0

Can I use the controller node as compute node?

asked 2017-08-02 05:36:04 -0500

liaodalin19903 gravatar image

updated 2017-08-02 06:27:58 -0500

I installed the openstack compute related packages:

yum install -y openstack-selinux python-openstackclient yum-plugin-priorities openstack-nova-compute openstack-utils ntpdate

But I can not start the openstack-nova-compute.service:

[root@ha-node1 instances]# systemctl restart openstack-nova-compute.service
Job for openstack-nova-compute.service failed because the control process exited with error code. See "systemctl status openstack-nova-compute.service" and "journalctl -xe" for details.

and in my /etc/nova/nova.conf, this is my configurations:

[DEFAULT]
debug = False
verbose = True
enabled_apis = osapi_compute,metadata
osapi_compute_listen_port = 9774
metadata_listen_port = 9775
my_ip = 192.168.8.101
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
rpc_backend = rabbit
auth_strategy = keystone
scheduler_use_baremetal_filters = False
scheduler_default_filters = RetryFilter,AvailabilityZoneFilter,RamFilter,CoreFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter
scheduler_weight_classes = nova.scheduler.weights.all_weighers
scheduler_host_subset_size = 30
scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler
scheduler_max_attempts = 3
scheduler_available_filters = nova.scheduler.filters.all_filters
ram_allocation_ratio = 3.0
disk_allocation_ratio = 1.0
cpu_allocation_ratio = 16.0
service_down_time = 180
osapi_compute_workers = 4
metadata_workers = 4
rootwrap_config = /etc/nova/rootwrap.conf
notify_on_state_change = vm_and_task_state
allow_resize_to_same_host = True
novncproxy_host = 192.168.8.101
novncproxy_port = 6080
#compute config
force_raw_images = True
remove_unused_original_minimum_age_seconds = 86400
image_service = nova.image.glance.GlanceImageService
use_cow_images = True
health_instance_info_cache_interval = 60
notify_on_state_change = vm_and_task_state
connection_type = libvirt
instance_usage_audit = True
instance_usage_audit_period = hour
vif_plugging_is_fatal = False
vif_plugging_timeout = 30
resume_guests_state_on_host_boot = True
api_rate_limit = False
block_device_allocate_retries_interval = 3
network_device_mtu = 1500
report_interval = 60
remove_unused_base_images = Flase
reserved_host_memory_mb = 512
service_down_time = 180


[database]
connection = mysql+pymysql://nova:passw0rd@devops.taobao.com/nova
idle_timeout = 3600
max_pool_size = 30
retry_interval = 2
max_retries = -1


[oslo_messaging_rabbit]
rabbit_hosts = ha-node1:5672,ha-node2:5672,ha-node3:5672
rabbit_userid = openstack
rabbit_password = passw0rd
rabbit_use_ssl = False
rabbit_ha_queues = True
rabbit_retry_interval = 1
rabbit_retry_backoff = 2
rabbit_max_retries = 0
amqp_durable_queues = False


[oslo_concurrency]
lock_path = /var/lib/nova/tmp


[libvirt]
virt_type = qemu
cpu_mode = host-model
block_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_NON_SHARED_INC
liv_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST


[keystone_authtoken]
auth_uri = http://devops.taobao.com:5000
auth_url = http://devops.taobao.com:35357
memcached_servers = ha-node1:11211,ha-node2:11211,ha-node3:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = passw0rd

[glance]
api_servers = http://devops.taobao.com:9292


[conductor]
use_local = False
workers = 4


[vnc]
enabled = True
keymap = en-us
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 192.168.8.101
novncproxy_base_url = http://45.117.40.168:6080/vnc_auto.html


[neutron]
url = http://devops.taobao.com:9696
auth_url = http://devops.taobao.com:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = neutron
password = passw0rd
service_metadata_proxy = True
metadata_proxy_shared_secret = passw0rd

[cinder]
os_region_name = RegionOne

the journal -xe:

[root@ha-node1 instances]# journalctl -xe
-- Unit openstack-nova-compute.service has failed.
-- 
-- The result is failed.
Aug 02 18:17:57 ha-node1 systemd[1]: Unit openstack-nova-compute.service entered failed state.
Aug 02 18:17:57 ha-node1 systemd[1]: openstack-nova-compute.service failed.
Aug 02 18:17:57 ha-node1 systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart.
Aug 02 18:17:57 ha-node1 systemd[1]: Starting OpenStack Nova Compute Server...
-- Subject: Unit openstack-nova-compute.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit openstack-nova-compute.service has begun starting up.
Aug 02 18:18:01 ha-node1 xinetd[91091]: START: mysqlchk pid=34432 from=::ffff:192.168.8.102
Aug 02 18:18:01 ha-node1 xinetd[91091]: EXIT: mysqlchk status=0 pid=34432 duration=0(sec)
Aug 02 18:18:02 ha-node1 nova-compute ...
(more)
edit retag flag offensive close merge delete

Comments

Check the nova-compute logs.? If possible try to stop all openstack services and then start them..

CloudEnthusiast gravatar imageCloudEnthusiast ( 2017-08-02 05:46:03 -0500 )edit

@CloudEnthusiast Yes, you see my edit-1

liaodalin19903 gravatar imageliaodalin19903 ( 2017-08-02 06:28:20 -0500 )edit

Hi there is a typo error Flase...Please change to default remove_unused_base_images = True and restart the compute service

Praveen N gravatar imagePraveen N ( 2017-08-02 06:40:34 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-08-02 06:44:13 -0500

liaodalin19903 gravatar image

Finally I found there is a typo in my configuration, it should be :

remove_unused_base_images = False

But I wrote to Flase. found it from the nova-compute.log

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

1 follower

Stats

Asked: 2017-08-02 05:36:04 -0500

Seen: 204 times

Last updated: Aug 02 '17