FS#47565 - [virt-manager] the path of sysconfig, points to /etc/sysconfig instead of /etc/conf.d

Attached to Project: Community Packages
Opened by Gustavo Alvarez (sl1pkn07) - Wednesday, 30 December 2015, 10:36 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 10 March 2016, 17:56 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

i'm don't know if is fixeable (i mean broken other components), but:

┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[/usr/share/augeas/lenses]|
└───╼ grep -R sysconfig
dist/up2date.aug: Parses /etc/sysconfig/rhn/up2date
dist/up2date.aug: This lens applies to /etc/sysconfig/rhn/up2date. See <filter>.
dist/up2date.aug:let filter = incl "/etc/sysconfig/rhn/up2date"
dist/iptables.aug:let xfm = transform lns (incl "/etc/sysconfig/iptables"
dist/iptables.aug: . incl "/etc/sysconfig/iptables.save"
dist/sysconfig.aug:(* Supports only what's needed to handle sysconfig files *)
dist/lokkit.aug:let xfm = transform lns (incl "/etc/sysconfig/system-config-firewall")
dist/shellvars_list.aug:(* in /etc/sysconfig, where a string needs to be split into *)
dist/shellvars_list.aug: let filter = incl "/etc/sysconfig/bootloader"
dist/shellvars_list.aug: . incl "/etc/sysconfig/kernel"
dist/sysconfig_route.aug: Parses /etc/sysconfig/network-scripts/route-${device}
dist/sysconfig_route.aug:/etc/sysconfig/network-scripts/route-${device} script found in RHEL5+, CentOS5+
dist/sysconfig_route.aug: > set /files/etc/sysconfig/network-scripts/route-eth0/10.10.2.1[1] 172.16.254.0/24
dist/sysconfig_route.aug: > match /files/etc/sysconfig/network-scripts/route-eth0/10.10.2.1
dist/sysconfig_route.aug: This lens applies to /etc/sysconfig/network-scripts/route-*
dist/sysconfig_route.aug:let filter = incl "/etc/sysconfig/network-scripts/route-*"
dist/tests/test_sysconfig.aug:(* Test for sysconfig lens *)
dist/tests/test_sysconfig.aug:module Test_sysconfig =
dist/tests/test_up2date.aug:systemIdPath=/etc/sysconfig/rhn/systemid
dist/tests/test_up2date.aug: { "value" = "/etc/sysconfig/rhn/systemid" } }
dist/tests/test_sysconfig_route.aug:module Test_sysconfig_route =
dist/shellvars.aug: in /etc/sysconfig
dist/shellvars.aug: let sc_incl (n:string) = (incl ("/etc/sysconfig/" . n))
dist/shellvars.aug: let sc_excl (n:string) = (excl ("/etc/sysconfig/" . n))
dist/shellvars.aug: let filter_sysconfig =
dist/shellvars.aug: let filter = filter_sysconfig
dist/dhcpd.aug:(* adapted from sysconfig.aug *)
dist/systemd.aug: . incl "/etc/sysconfig/*.systemd"

in arch, the sysconfig path is set to /etc/conf.d, rigth?

I find this when try to create a bridge interface in virt-manager (connection details -> network interfaces): http://i.imgur.com/yOxIJKn.png

yes, a posssible workground is created by netctlr, but the error is the adaptation from upstream to archlinux directory scheme


greetings
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 10 March 2016, 17:56 GMT
Reason for closing:  Won't implement
Additional comments about closing:  + dup of  FS#47328 
Comment by Doug Newgard (Scimmia) - Wednesday, 30 December 2015, 15:16 GMT
"in arch, the sysconfig path is set to /etc/conf.d, rigth?"

No, it's not.
Comment by Gustavo Alvarez (sl1pkn07) - Wednesday, 30 December 2015, 15:20 GMT Comment by Doug Newgard (Scimmia) - Wednesday, 30 December 2015, 15:27 GMT
Because he wanted to put systemd unit environment files there. I doubt that has anything to do with your error, though I can't say since you didn't post the error but a screenshot in a language I don't know.
Comment by Gustavo Alvarez (sl1pkn07) - Wednesday, 30 December 2015, 15:30 GMT
Error creating interface: 'Could not define interface: Error interno: Could not get XML interface description: unspecified error - aug_save failed on /etc/sysconfig/network-scripts/ifcfg-br1: mk_augtemp (No such file or directory)'

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createinterface.py", line 1141, in do_install
self.interface.install(meter, create=activate)
File "/usr/share/virt-manager/virtinst/interface.py", line 257, in install
raise RuntimeError(_("Could not define interface: %s") % str(e))
RuntimeError: Could not define interface: Error interno: Could not get XML interface description: unspecified error - aug_save failed on /etc/sysconfig/network-scripts/ifcfg-br1: mk_augtemp (No such file or directory)

*'Could not get XML interface description:' from google translation. i don't know why LOCALE=C not work in this string


then, the directory /etc/sysconfig/ is need be created? /etc/sysconfig/ is not a system directory in other distributions?. for example, various of these paths is stored in arch in /etc/default
Comment by Doug Newgard (Scimmia) - Wednesday, 30 December 2015, 15:37 GMT
For the love of god, LC_ALL=C
Comment by Gustavo Alvarez (sl1pkn07) - Wednesday, 30 December 2015, 15:41 GMT
'For the love of god, LC_ALL=C'

nope, the same string is not traslated with LC_ALL=C
Comment by Gustavo Alvarez (sl1pkn07) - Wednesday, 30 December 2015, 15:48 GMT
EDIT: OPS. this part can safe ignore
Comment by Doug Newgard (Scimmia) - Wednesday, 30 December 2015, 16:03 GMT
It appears to be trying to save something to /etc/sysconfig/network-scripts/. It doesn't matter if that's changed to /etc/conf.d, that's wrong.
Comment by Gustavo Alvarez (sl1pkn07) - Wednesday, 30 December 2015, 16:19 GMT
the only 'sysconfig' in virt-manager is this:

└───╼ grep -R -e 'sysconfig'
virtinst/hostkeymap.py:_KEYBOARD_DIR = "/etc/sysconfig/keyboard"
virtinst/hostkeymap.py:def _sysconfig_keyboard(f):
virtinst/hostkeymap.py: (_ETC_VCONSOLE, _sysconfig_keyboard),
virtinst/hostkeymap.py: (_KEYBOARD_DIR, _sysconfig_keyboard),
setup.py:import distutils.sysconfig
setup.py:sysprefix = distutils.sysconfig.get_config_var("prefix")


maybe also is in libvirt instead of only in virt-manager?
Comment by Gustavo Alvarez (sl1pkn07) - Wednesday, 30 December 2015, 16:33 GMT
anyway, 'mk_augtemp' and 'aug_save' is part of augeras and can't find in virt-manager and libvirt code (simple grep -R)

'network-scripts' is found in libvirt: http://sl1pkn07.wtf/paste/view/d479f400, but not in virt-manager

i think the main culprit is augeras

greetings
Comment by Michal Kottman (mkottman) - Friday, 01 January 2016, 14:20 GMT
I can confirm this happens when trying to create a network interface in virt-manager from Edit > Connection Details > Network Interfaces and clicking on Finish: http://imgur.com/SIEhMpk

Pulled from running virt-manager --debug:

[Fri, 01 Jan 2016 15:15:32 virt-manager 26879] DEBUG (interface:252) Creating interface 'virbr1-nic' with xml:
<interface type="ethernet" name="virbr1-nic">
<start mode="onboot"/>
<mac address="52:54:00:xx:yy:zz"/>
<protocol family="ipv4">
<dhcp/>
</protocol>
</interface>

[Fri, 01 Jan 2016 15:15:32 virt-manager 26879] DEBUG (error:99) error dialog message:
summary=Error creating interface: 'Could not define interface: internal error: could not get interface XML description: unspecified error - aug_save failed on /etc/sysconfig/network-scripts/ifcfg-virbr1-nic: mk_augtemp (No such file or directory)'
details=Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createinterface.py", line 1141, in do_install
self.interface.install(meter, create=activate)
File "/usr/share/virt-manager/virtinst/interface.py", line 257, in install
raise RuntimeError(_("Could not define interface: %s") % str(e))
RuntimeError: Could not define interface: internal error: could not get interface XML description: unspecified error -
aug_save failed on /etc/sysconfig/network-scripts/ifcfg-virbr1-nic: mk_augtemp (No such file or directory)


$ pacman -Q libvirt virt-manager augeas
libvirt 1.3.0-1
virt-manager 1.3.1-2
augeas 1.4.0-1


Please let me know if you need more details.
Comment by Jonas (Spalabi) - Friday, 15 January 2016, 14:21 GMT
I do also have this problem:

Error creating interface: 'Could not define interface: internal error: could not get interface XML description: unspecified error - aug_save failed on /etc/sysconfig/network-scripts/ifcfg-enp3s0.0: mk_augtemp (No such file or directory)'

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createinterface.py", line 1141, in do_install
self.interface.install(meter, create=activate)
File "/usr/share/virt-manager/virtinst/interface.py", line 257, in install
raise RuntimeError(_("Could not define interface: %s") % str(e))
RuntimeError: Could not define interface: internal error: could not get interface XML description: unspecified error - aug_save failed on /etc/sysconfig/network-scripts/ifcfg-enp3s0.0: mk_augtemp (No such file or directory)
Comment by Brandon Golway (brando56894) - Wednesday, 03 February 2016, 04:08 GMT
Same Here

rror creating interface: 'Could not define interface: internal error: could not get interface XML description: unspecified error - aug_save failed on /etc/sysconfig/network-scripts/ifcfg-br1: mk_augtemp (No such file or directory)'

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createinterface.py", line 1141, in do_install
self.interface.install(meter, create=activate)
File "/usr/share/virt-manager/virtinst/interface.py", line 257, in install
raise RuntimeError(_("Could not define interface: %s") % str(e))
RuntimeError: Could not define interface: internal error: could not get interface XML description: unspecified error - aug_save failed on /etc/sysconfig/network-scripts/ifcfg-br1: mk_augtemp (No such file or directory)
Comment by Brandon Golway (brando56894) - Wednesday, 03 February 2016, 04:10 GMT
After creating the missing directory, I ran into another issue, which isn't an Arch issue:

RuntimeError: Could not create interface: internal error: failed to create (start) interface br1: failed to execute external program - Running 'ifup virbr0-nic' program not found
Comment by Niccolò Belli (darkbasic) - Thursday, 04 February 2016, 13:37 GMT
This should be of interest:netcf-devel@lists.fedorahosted.org/thread/Y6IOBT75KETGPYL6A7EDFDU77TOIS4MF/"> https://lists.fedorahosted.org/archives/list/netcf-devel@lists.fedorahosted.org/thread/Y6IOBT75KETGPYL6A7EDFDU77TOIS4MF/
Comment by Sergej Pupykin (sergej) - Thursday, 10 March 2016, 17:56 GMT
Creation interfaces by netcf impossible, see  FS#47328 

Loading...