Bug 1115819 - InvalidData: u'The field must contain an empty string or a valid FQDN or a valid IPv4 address or a valid IPv6 address.'
Summary: InvalidData: u'The field must contain an empty string or a valid FQDN or a va...
Keywords:
Status: CLOSED DUPLICATE of bug 1104035
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-node-plugin-vdsm
Version: 3.5
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 3.5.0
Assignee: Douglas Schilling Landgraf
QA Contact: Pavel Stehlik
URL:
Whiteboard: node
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-03 07:55 UTC by Netbulae
Modified: 2016-02-10 19:39 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-09 17:51:06 UTC
oVirt Team: Node
Embargoed:


Attachments (Terms of Use)

Description Netbulae 2014-07-03 07:55:06 UTC
Description of problem:
Using latest node image I'm having a problem with networking after node deploy through http://www.ovirt.org/Features/AdvancedForemanIntegration. 
      
All network devices are unconfigured and registration of the node fails. When I disable->enable dhcp I get an error in the admin gui. 

supervdsm & ovirt-node.log: http://pastebin.com/8bT8aF2x
      
      What caught my attention:
      
      supervdsm.log:
      
      MainThread::INFO::2014-07-02       09:11:56,256::netconfpersistence::158::root::(_clearDisk) Clearing       /var/run/vdsm/netconf/nets/ and /var/run/vdsm/netconf/bonds/
      MainThread::DEBUG::2014-07-02       09:11:56,256::netconfpersistence::166::root::(_clearDisk) No       existent config to clear.
      MainThread::INFO::2014-07-02       09:11:56,256::netconfpersistence::182::root::(save) Saved new       config RunningConfig({}, {}) to /var/run/vdsm/netconf/nets/ and       /var/run/vdsm/netconf/bonds/
      MainThread::DEBUG::2014-07-02       09:11:56,258::netconfpersistence::134::root::(_getConfigs)       Non-existing config set.
      MainThread::DEBUG::2014-07-02       09:11:56,260::utils::683::root::(execCmd) '/sbin/ifdown eth0' (cwd       None)
      MainThread::DEBUG::2014-07-02       09:11:56,465::utils::703::root::(execCmd) SUCCESS: <err> =       ''; <rc> = 0
      MainThread::ERROR::2014-07-02       09:11:56,466::utils::131::root::(rmFile) Removing file:       /etc/sysconfig/network-scripts/ifcfg-eth0 failed
      Traceback (most recent call last):
        File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line       125, in rmFile
          os.unlink(fileToRemove)
      OSError: [Errno 16] Device or resource busy:       '/etc/sysconfig/network-scripts/ifcfg-eth0'
      sourceRoute::DEBUG::2014-07-02       09:20:02,310::sourceroutethread::39::root::(process_IN_CLOSE_WRITE_filePath)       Responding to DHCP response in       /var/run/vdsm/sourceRoutes/1404292802
      sourceRoute::DEBUG::2014-07-02       09:20:02,317::libvirtconnection::146::root::(get) trying to       connect libvirt
      sourceRoute::INFO::2014-07-02       09:20:02,374::sourceroutethread::56::root::(process_IN_CLOSE_WRITE_filePath)       interface eth0 is not a libvirt interface
      sourceRoute::WARNING::2014-07-02       09:20:02,374::utils::128::root::(rmFile) File:       /var/run/vdsm/trackedInterfaces/eth0 already removed
      
      ovirt-node.log:
      
        File       "/usr/lib/python2.6/site-packages/ovirt/node/setup/vdsm/engine_page.py",       line 279, in on_merge
          model.update(cert_path=None)
        File       "/usr/lib/python2.6/site-packages/ovirt/node/config/defaults.py",       line 196, in wrapper
        File       "/usr/lib/python2.6/site-packages/ovirt/node/setup/vdsm/engine_page.py",       line 453, in update
          (valid.Empty(or_none=True) | valid.FQDNOrIPAddress())(server)
        File "/usr/lib/python2.6/site-packages/ovirt/node/valid.py",       line 63, in __call__
        File "/usr/lib/python2.6/site-packages/ovirt/node/valid.py",       line 69, in raise_exception
      InvalidData: u'The field must contain an empty string or a valid       FQDN or a valid IPv4 address or a valid IPv6 address.'
          

Version-Release number of selected component (if applicable):
ovirt-node-iso-3.5.0.ovirt35.20140630.el6.iso

How reproducible:
Tried several times

Steps to Reproduce:
1. deploy a node
2. node install finishes and node reboots
3. No networking
4. Disable dhcp
5. Enable dhcp
6. InvalidData error, drop to shell

Comment 1 Douglas Schilling Landgraf 2014-07-03 15:18:33 UTC
(In reply to Netbulae from comment #0)
> Description of problem:
> Using latest node image I'm having a problem with networking after node
> deploy through http://www.ovirt.org/Features/AdvancedForemanIntegration. 
>       
> All network devices are unconfigured and registration of the node fails.
> When I disable->enable dhcp I get an error in the admin gui. 
> 
> supervdsm & ovirt-node.log: http://pastebin.com/8bT8aF2x
>       
>       What caught my attention:
>       
>       supervdsm.log:
>       
>       MainThread::INFO::2014-07-02      
> 09:11:56,256::netconfpersistence::158::root::(_clearDisk) Clearing      
> /var/run/vdsm/netconf/nets/ and /var/run/vdsm/netconf/bonds/
>       MainThread::DEBUG::2014-07-02      
> 09:11:56,256::netconfpersistence::166::root::(_clearDisk) No       existent
> config to clear.
>       MainThread::INFO::2014-07-02      
> 09:11:56,256::netconfpersistence::182::root::(save) Saved new       config
> RunningConfig({}, {}) to /var/run/vdsm/netconf/nets/ and      
> /var/run/vdsm/netconf/bonds/
>       MainThread::DEBUG::2014-07-02      
> 09:11:56,258::netconfpersistence::134::root::(_getConfigs)      
> Non-existing config set.
>       MainThread::DEBUG::2014-07-02      
> 09:11:56,260::utils::683::root::(execCmd) '/sbin/ifdown eth0' (cwd      
> None)
>       MainThread::DEBUG::2014-07-02      
> 09:11:56,465::utils::703::root::(execCmd) SUCCESS: <err> =       ''; <rc> = 0
>       MainThread::ERROR::2014-07-02      
> 09:11:56,466::utils::131::root::(rmFile) Removing file:      
> /etc/sysconfig/network-scripts/ifcfg-eth0 failed
>       Traceback (most recent call last):
>         File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line      
> 125, in rmFile
>           os.unlink(fileToRemove)
>       OSError: [Errno 16] Device or resource busy:      
> '/etc/sysconfig/network-scripts/ifcfg-eth0'
>       sourceRoute::DEBUG::2014-07-02      
> 09:20:02,310::sourceroutethread::39::root::(process_IN_CLOSE_WRITE_filePath)
> Responding to DHCP response in       /var/run/vdsm/sourceRoutes/1404292802
>       sourceRoute::DEBUG::2014-07-02      
> 09:20:02,317::libvirtconnection::146::root::(get) trying to       connect
> libvirt
>       sourceRoute::INFO::2014-07-02      
> 09:20:02,374::sourceroutethread::56::root::(process_IN_CLOSE_WRITE_filePath)
> interface eth0 is not a libvirt interface
>       sourceRoute::WARNING::2014-07-02      
> 09:20:02,374::utils::128::root::(rmFile) File:      
> /var/run/vdsm/trackedInterfaces/eth0 already removed
>       
>       ovirt-node.log:
>       
>         File      
> "/usr/lib/python2.6/site-packages/ovirt/node/setup/vdsm/engine_page.py",    
> line 279, in on_merge
>           model.update(cert_path=None)
>         File      
> "/usr/lib/python2.6/site-packages/ovirt/node/config/defaults.py",       line
> 196, in wrapper
>         File      
> "/usr/lib/python2.6/site-packages/ovirt/node/setup/vdsm/engine_page.py",    
> line 453, in update
>           (valid.Empty(or_none=True) | valid.FQDNOrIPAddress())(server)
>         File "/usr/lib/python2.6/site-packages/ovirt/node/valid.py",      
> line 63, in __call__
>         File "/usr/lib/python2.6/site-packages/ovirt/node/valid.py",      
> line 69, in raise_exception
>       InvalidData: u'The field must contain an empty string or a valid      
> FQDN or a valid IPv4 address or a valid IPv6 address.'
>           
> 
> Version-Release number of selected component (if applicable):
> ovirt-node-iso-3.5.0.ovirt35.20140630.el6.iso
> 
> How reproducible:
> Tried several times
> 
> Steps to Reproduce:
> 1. deploy a node
> 2. node install finishes and node reboots
> 3. No networking
> 4. Disable dhcp
> 5. Enable dhcp
> 6. InvalidData error, drop to shell

Hello Netbulae,

Thanks for your report. Toni, can you please share your thoughts here? It seems the issue I have reported days ago right?

Comment 2 Douglas Schilling Landgraf 2014-07-09 05:57:39 UTC
Toni, to be clear, based on the log seems BZ#1104035.

>  os.unlink(fileToRemove)
>      OSError: [Errno 16] Device or resource busy:       '/etc/sysconfig/network-> scripts/ifcfg-eth0'

Comment 3 Antoni Segura Puimedon 2014-07-09 17:41:44 UTC
You're right Douglas. That bug happens here. Also https://bugzilla.redhat.com/1108571 is related.

Comment 4 Douglas Schilling Landgraf 2014-07-09 17:51:06 UTC

*** This bug has been marked as a duplicate of bug 1104035 ***


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