Bug 1286560 - Cannot run appliance_console when the appliance has an IPv6 address
Summary: Cannot run appliance_console when the appliance has an IPv6 address
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: Nick Carboni
QA Contact: Ola Pavlenko
URL:
Whiteboard: appliance:cli
: 1290002 1297356 (view as bug list)
Depends On:
Blocks: 1290105
TreeView+ depends on / blocked
 
Reported: 2015-11-30 09:08 UTC by Marius Cornea
Modified: 2019-09-12 09:25 UTC (History)
10 users (show)

Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1290105 (view as bug list)
Environment:
Last Closed: 2016-06-29 15:13:23 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Marius Cornea 2015-11-30 09:08:44 UTC
Description of problem:
Running appliance_console doesn't work when the appliance has an IPv6 address.

Version-Release number of selected component (if applicable):
5.5.0.12

How reproducible:
100%

Steps to Reproduce:
1. Deploy appliance with IPv6 address on KVM host
2. Run appliance_console

Actual results:
/opt/rh/rh-ruby22/root/usr/share/ruby/ipaddr.rb:430:in `mask!': invalid length (IPAddr::InvalidPrefixError)

Expected results:
The appliance_console menu shows up.

Additional info:
[root@localhost ~]# appliance_console
/opt/rh/rh-ruby22/root/usr/share/ruby/ipaddr.rb:430:in `mask!': invalid length (IPAddr::InvalidPrefixError)
	from /opt/rh/rh-ruby22/root/usr/share/ruby/ipaddr.rb:157:in `mask'
	from /opt/rh/cfme-gemset/gems/linux_admin-0.12.1/lib/linux_admin/network_interface.rb:163:in `parse_ip4'
	from /opt/rh/cfme-gemset/gems/linux_admin-0.12.1/lib/linux_admin/network_interface.rb:48:in `reload'
	from /opt/rh/cfme-gemset/gems/linux_admin-0.12.1/lib/linux_admin/network_interface.rb:37:in `initialize'
	from /opt/rh/cfme-gemset/gems/linux_admin-0.12.1/lib/linux_admin/network_interface/network_interface_rh.rb:13:in `initialize'
	from /opt/rh/cfme-gemset/gems/linux_admin-0.12.1/lib/linux_admin/network_interface.rb:27:in `new'
	from /opt/rh/cfme-gemset/gems/linux_admin-0.12.1/lib/linux_admin/network_interface.rb:27:in `new'
	from /opt/rh/cfme-gemset/gems/linux_admin-0.12.1/lib/linux_admin/network_interface.rb:27:in `new'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:99:in `<module:ApplianceConsole>'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:98:in `<main>'

Comment 2 Marius Cornea 2015-11-30 09:13:06 UTC
Here's the IP address coniguration on the VM:

[root@cloudforms ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 52:54:00:89:df:34 brd ff:ff:ff:ff:ff:ff
    inet6 2000:dead:beef:a:5054:ff:fe89:df34/64 scope global dynamic 
       valid_lft 3440sec preferred_lft 3440sec
    inet6 fe80::5054:ff:fe89:df34/64 scope link 
       valid_lft forever preferred_lft forever

Comment 3 Nick Carboni 2015-12-10 14:01:47 UTC
This may be fixed as of https://github.com/ManageIQ/linux_admin/pull/141 which is included in version 0.13.0 of the linux_admin gem. I will retest this upstream.
Because the version of linux_admin was bumped here https://github.com/ManageIQ/manageiq/commit/3ba88b3c5ccfda4d6d6fe2bc8b5c96c17e827d94 this may already be fixed upstream and also downstream as the gemfile change was back-ported in this MR (http://gitlab.cloudforms.lab.eng.rdu2.redhat.com/cloudforms/cfme/merge_requests/590)

Comment 4 Nick Carboni 2015-12-10 14:38:52 UTC
Works in upstream nightly as of 2015-12-08

Comment 5 Nick Carboni 2015-12-15 14:10:00 UTC
*** Bug 1290002 has been marked as a duplicate of this bug. ***

Comment 6 Nick Carboni 2016-01-12 13:11:05 UTC
*** Bug 1297356 has been marked as a duplicate of this bug. ***

Comment 8 Ronnie Rasouli 2016-06-13 13:42:04 UTC
verified on 5.6.0.9 rc2
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 52:54:00:e9:a5:ac brd ff:ff:ff:ff:ff:ff
    inet6 2000:dead:beef:a:5054:ff:fe89:df34/64
       valid_lft forever preferred_lft forever 
    inet6 fe80::5054:ff:fee9:a5ac/64 scope link 
       valid_lft forever preferred_lft forever

Comment 10 errata-xmlrpc 2016-06-29 15:13:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348


Note You need to log in before you can comment on or make changes to this bug.