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
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
|
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
Thursday, 10 March 2016, 17:56 GMT
Reason for closing: Won't implement
Additional comments about closing: + dup of
No, it's not.
https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/libvirt#n80
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
nope, the same string is not traslated with LC_ALL=C
└───╼ 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?
'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
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.
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)
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)
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
FS#47328