Bug 1475804
| Summary: | setting hostname through appliance console throws error on ipv6 only env | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | luke couzens <lcouzens> | |
| Component: | Appliance | Assignee: | Gregg Tanzillo <gtanzill> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | luke couzens <lcouzens> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 5.8.0 | CC: | abellott, cpelland, jhardy, lcouzens, obarenbo, sacpatil, smallamp, yrudman | |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
| Target Release: | 5.9.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | black | |||
| Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1482669 (view as bug list) | Environment: | ||
| Last Closed: | 2018-03-06 15:12:21 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1482669 | |||
|
Description
luke couzens
2017-07-27 12:18:25 UTC
I cannot reproduce the bug in current master branch of ManageIQ (Openstack, 20170721 build, pull to current master. Also I don't have /opt/rh/cfme-gemset/... directory. Do we have vm image contains 5.8.1.4 cfme to test this. Thanks Can't reproduce it in cfme-rhevm-5.8.1.4-1.x86_64.qcow2 Luke, Can you provide appliance credentials that you reproduces on? Thanks! (In reply to luke couzens from comment #0) > Description of problem:setting hostname through appliance console throws > error on ipv6 only env > > > Version-Release number of selected component (if applicable):5.8.1.4 > > > How reproducible:100% > > > Steps to Reproduce: > 1.provision appliance on ipv6 only environment > 2.connect to appliance through console > 3.run appliance_console > 4.select option 1 followed by option 5 > 5.set hostname > > Actual results: > Enter the new hostname: |localhost.localdomain| myappliance.example.com > Applying new hostname... > > /opt/rh/cfme-gemset/gems/awesome_spawn-1.4.1/lib/awesome_spawn.rb:105:in > `run!': /bin/systemctl exit code: 1 (AwesomeSpawn::CommandResultError) > from > /opt/rh/cfme-gemset/gems/linux_admin-0.20.2/lib/linux_admin/common.rb:24:in > `run!' > from > /opt/rh/cfme-gemset/gems/linux_admin-0.20.2/lib/linux_admin/service/ > systemd_service.rb:18:in `start' > from > /opt/rh/cfme-gemset/gems/linux_admin-0.20.2/lib/linux_admin/service/ > systemd_service.rb:33:in `restart' > from > /opt/rh/cfme-gemset/bundler/gems/manageiq-gems-pending-8f7d63f441d5/lib/gems/ > pending/appliance_console.rb:311:in `block in <module:ApplianceConsole>' > from > /opt/rh/cfme-gemset/bundler/gems/manageiq-gems-pending-8f7d63f441d5/lib/gems/ > pending/appliance_console.rb:108:in `loop' > from > /opt/rh/cfme-gemset/bundler/gems/manageiq-gems-pending-8f7d63f441d5/lib/gems/ > pending/appliance_console.rb:108:in `<module:ApplianceConsole>' > from > /opt/rh/cfme-gemset/bundler/gems/manageiq-gems-pending-8f7d63f441d5/lib/gems/ > pending/appliance_console.rb:99:in `<top (required)>' > from /usr/bin/appliance_console:10:in `require' > from /usr/bin/appliance_console:10:in `<main>' > > > > Expected results: > Hostname set and appliance_console does not crash > > Additional info: > It does seem to set the hostname, we just crash out of appliance_console > with this error. Similar issue was see in CloudForms on OpenShift is template updated to 5.8.1? using appliance_console (ap): - 4) Set Hostname - Enter the new hostname: |19443e6f1e3b| cfme42-v03 Applying new hostname... /opt/rh/cfme-gemset/gems/awesome_spawn-1.4.1/lib/awesome_spawn.rb:105:in `run!': /bin/hostnamectl exit code: 1 (AwesomeSpawn::CommandResultError) from /opt/rh/cfme-gemset/gems/linux_admin-0.19.0/lib/linux_admin/common.rb:24:in `run!' from /opt/rh/cfme-gemset/gems/linux_admin-0.19.0/lib/linux_admin/hosts.rb:39:in `hostname=' from /var/www/miq/vmdb/gems/pending/appliance_console.rb:246:in `block in <module:ApplianceConsole>' from /var/www/miq/vmdb/gems/pending/appliance_console.rb:111:in `loop' from /var/www/miq/vmdb/gems/pending/appliance_console.rb:111:in `<module:ApplianceConsole>' from /var/www/miq/vmdb/gems/pending/appliance_console.rb:97:in `<main>' Hi Luke, I can reproduce it in your appliance now. Thanks. Regards, Bo New commit detected on ManageIQ/manageiq-gems-pending/master: https://github.com/ManageIQ/manageiq-gems-pending/commit/b5d991fb8817d3e0aaa10cb082c620cc6609238b commit b5d991fb8817d3e0aaa10cb082c620cc6609238b Author: Bo Yao <boyao> AuthorDate: Tue Aug 8 11:15:49 2017 -0400 Commit: Bo Yao <boyao> CommitDate: Thu Aug 17 09:27:41 2017 -0400 fix restart network error when set host name in pure ipv6 network https://bugzilla.redhat.com/show_bug.cgi?id=1475804 lib/gems/pending/appliance_console.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Verified in 5.9.0.2 |