Created attachment 1024218 [details] amqp installation log Description of problem: When running packstack on RHEL 7.1 on a host with a hostname of 64 bytes in length RabbitMQ fails to start Version-Release number of selected component (if applicable): Packstack version- packstack Kilo 2015.1.dev1537.gba5183c uname - Linux rdo-testday-ipv6-rhel-7.1-38593203-90d9-4755-882d-e52c72076ea5.n 3.10.0-229.el7.x86_64 #1 SMP Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux RHEL version - Red Hat Enterprise Linux Server release 7.1 (Maipo) amqp version - python-amqp-1.4.6-1.el7.noarch How reproducible: Run packstack on a 64 bytes length hostname machine Steps to Reproduce: 1. Configure your host's hostname to a 64 bytes length 2. Install packstack: yum install openstack-packstack 3. Generate answer file and edit as needed: packstack --gen-answer-file=<name> 4. Run installation: packstack --answer-file=<name> Actual results: Installation fails when trying to start RabbitMQ service Expected results: Installation finished successfully Additional info: Installation message: 2001:77:77:77:f816:3eff:fe95:8683_amqp.pp: [ ERROR ] > Applying Puppet manifests [ ERROR ] > ERROR : Error appeared during Puppet run: 2001:77:77:77:f816:3eff:fe95:8683_amqp.pp > Error: Could not start Service[rabbitmq-server]: Execution of '/usr/bin/systemctl start rabbitmq-server' returned 1: Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details. > You will find full trace in log /var/tmp/packstack/20150507-080243-fi86Ze/manifests/2001:77:77:77:f816:3eff:fe95:8683_amqp.pp.log > Please check log file /var/tmp/packstack/20150507-080243-fi86Ze/openstack-setup.log for more information systemctl status rabbitmq-server output: [root@rdo-testday-ipv6-rhel-7 tmp]# systemctl status rabbitmq-server.service -l rabbitmq-server.service - RabbitMQ broker Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled) Drop-In: /etc/systemd/system/rabbitmq-server.service.d └─limits.conf Active: failed (Result: exit-code) since Mon 2015-05-11 06:51:58 EDT; 2min 8s ago Process: 15835 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=1/FAILURE) Process: 15803 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE) Main PID: 15803 (code=exited, status=1/FAILURE) CGroup: /system.slice/rabbitmq-server.service May 11 06:51:57 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE May 11 06:51:58 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n rabbitmqctl[15835]: {error_logger,{{2015,5,11},{6,51,58}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,{'EXIT',{function_clause,[{inet_config,set_hostname,[{error,enametoolong}],[{file,"inet_config.erl"},{line,237}]},{inet_config,init,0,[{file,"inet_config.erl"},{line,47}]},{inet_db,start_link,0,[{file,"inet_db.erl"},{line,112}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,310}]},{supervisor,start_children,3,[{file,"supervisor.erl"},{line,293}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,259}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}},{offender,[{pid,undefined},{name,inet_db},{mfargs,{inet_db,start_link,[]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]} May 11 06:51:58 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n rabbitmqctl[15835]: {error_logger,{{2015,5,11},{6,51,58}},crash_report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,inet_db,{'EXIT',{function_clause,[{inet_config,set_hostname,[{error,enametoolong}],[{file,"inet_config.erl"},{line,237}]},{inet_config,init,0,[{file,"inet_config.erl"},{line,47}]},{inet_db,start_link,0,[{file,"inet_db.erl"},{line,112}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,310}]},{supervisor,start_children,3,[{file,"supervisor.erl"},{line,293}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,259}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{ancestors,[<0.8.0>]},{messages,[{'EXIT',<0.10.0>,normal}]},{links,[<0.8.0>,<0.7.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,27},{reductions,157}],[]]} May 11 06:51:58 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n rabbitmqctl[15835]: {error_logger,{{2015,5,11},{6,51,58}},std_info,[{application,kernel},{exited,{{shutdown,{failed_to_start_child,inet_db,{'EXIT',{function_clause,[{inet_config,set_hostname,[{error,enametoolong}],[{file,"inet_config.erl"},{line,237}]},{inet_config,init,0,[{file,"inet_config.erl"},{line,47}]},{inet_db,start_link,0,[{file,"inet_db.erl"},{line,112}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,310}]},{supervisor,start_children,3,[{file,"supervisor.erl"},{line,293}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,259}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}},{kernel,start,[normal,[]]}}},{type,permanent}]} May 11 06:51:58 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n rabbitmqctl[15835]: {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,inet_db,{'EXIT',{function_clause,[{inet_config,set_hostname,[{error,enametoolong}],[{file,\"inet_config.erl\"},{line,237}]},{inet_config,init,0,[{file,\"inet_config.erl\"},{line,47}]},{inet_db,start_link,0,[{file,\"inet_db.erl\"},{line,112}]},{supervisor,do_start_child,2,[{file,\"supervisor.erl\"},{line,310}]},{supervisor,start_children,3,[{file,\"supervisor.erl\"},{line,293}]},{supervisor,init_children,2,[{file,\"supervisor.erl\"},{line,259}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]}}}},{kernel,start,[normal,[]]}}}"} May 11 06:51:58 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n rabbitmqctl[15835]: Crash dump was written to: erl_crash.dump May 11 06:51:58 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n rabbitmqctl[15835]: Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,inet_db,{'EXIT',{function_clause,[{inet_config,set_hostname,[{error,enametoolong}] May 11 06:51:58 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n systemd[1]: rabbitmq-server.service: control process exited, code=exited status=1 May 11 06:51:58 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n systemd[1]: Failed to start RabbitMQ broker. May 11 06:51:58 rdo-testday-ipv6-rhel-7.1-2a5f1919-18cd-451a-b770-46d847816e81.n systemd[1]: Unit rabbitmq-server.service entered failed state. [root@rdo-testday-ipv6-rhel-7 ~]# hostname rdo-testday-ipv6-rhel-7.1-38593203-90d9-4755-882d-e52c72076ea5.n The limit is 64 bytes [root@rdo-testday-ipv6-rhel-7 ~]# getconf HOST_NAME_MAX 64
Created attachment 1024219 [details] openstack setup log
I really am not Linux expert, but IMHO if HOST_NAME_MAX == 64 then hostnames should not be longer that 64 bytes. So unless you want Packstack to start recompliling kernel [1], your issue is not fixable. [1] http://www.cyberciti.biz/tips/linux-hostname.html