Bug 1108571

Summary: /var/lib/vdsm/persistence/netconf is not persistent
Product: [Retired] oVirt Reporter: Douglas Schilling Landgraf <dougsland>
Component: vdsmAssignee: Antoni Segura Puimedon <asegurap>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Pavlik <mpavlik>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5CC: bazulay, bugs, danken, dcaroest, fdeutsch, gklein, iheim, info, jboggs, mburman, mgoldboi, mtayer, rbalakri, ybronhei, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: network
Fixed In Version: ovirt-3.5.0-beta1.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:25:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1104035    
Bug Blocks:    

Description Douglas Schilling Landgraf 2014-06-12 09:19:31 UTC
Description of problem:

on oVirt node 3.0.4-1.0 build with vdsm from master branch (vdsm-4.15.0-112.gitffd6c57.el6.x86_64) the symbol link: 
/var/lib/vdsm/persistence/netconf is broken (files not persistent) after reboot.

Additional info:
- No more ovirtmgmt after reboot
- # findmnt /var/lib/vdsm/persistence
/var/lib/vdsm/persistence /dev/mapper/HostVG-Config[/var/lib/vdsm/persistence] ext4 rw,noatime
- there is /config/var/lib/vdsm/persistence/netconf


How reproducible:

- Install oVirt Node from:
  http://people.redhat.com/dlandgra/masterbuild.iso
  - vdsm-4.15.0-112.gitffd6c57.el6.x86_64 (current master)
  - oVirt node 3.0.4-1.0

* Login as admin
- Configure Network (in my case dhcp, eth0)

* Press F2 (to go to shell)
  # unpersist /etc/sysconfig/network-scripts/ifcfg-eth0 (BZ#1104035 in my interface is eth0)
  
  # vi /etc/vdsm-reg/vdsm-reg.conf  (or use the TUI)
  vdc_host_name=ip_addres_ovirt_engine
  vdc_host_port=port_ovirt_engine
  # service vdsm-reg restart

- Approve node on Engine

OK, host is UP.

# ls -la /var/lib/vdsm/persistence/
netconf -> /var/lib/vdsm/persistence/netconf.140256495835498
netconf.140256495835498

# ifconfig/ip addr (shows ovirtmgmt)

* Everything OK. Put host into Maintenance and reboot

After reboot, the symbol link  /var/lib/vdsm/persistence/ is broken.

Comment 1 Martin Pavlik 2014-08-08 12:54:43 UTC
VERFIED

symlink survives reboot

[root@localhost admin]# cat /etc/redhat-release 
oVirt Node Hypervisor release 3.1.0_master (20140805.0) (Edited, Unsigned)[root@localhost admin]#

Comment 2 Sandro Bonazzola 2014-10-17 12:25:34 UTC
oVirt 3.5 has been released and should include the fix for this issue.