** Description changed:

  I am using ubuntu 19.04 (disco)
  
  netplan version:- netplan.io/disco-updates,now 0.97-0ubuntu1~19.04.1
  amd64
  
- when i change /etc/netplan/01-netcfg.yaml to set static ip and do
- netplan apply
+ when i change /etc/netplan/01-netcfg.yaml to set static ip
  
- i get below error:-
+ network:
+   ethernets:
+     eth0:
+       addresses:
+       - 10.243.15.105/19
+       dhcp4: 'no'
+       gateway4: 10.243.0.1
+       nameservers:
+         addresses:
+         - 10.240.0.10
+         - 10.240.0.11
+   renderer: networkd
+   version: 2
+ 
+ 
+ and do "netplan apply"
+ 
+ 
+ It throws below error:-
  
  Traceback (most recent call last):
    File "/usr/sbin/netplan", line 23, in <module>
      netplan.main()
    File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
      self.run_command()
    File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
      self.func()
    File "/usr/share/netplan/netplan/cli/commands/apply.py", line 43, in run
      self.run_command()
    File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
      self.func()
    File "/usr/share/netplan/netplan/cli/commands/apply.py", line 106, in 
command_apply
      stderr=subprocess.DEVNULL)
    File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['udevadm', 'test-builtin', 
'net_setup_link', '/sys/class/net/lo']' returned non-zero exit status 1.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834285

Title:
  unable to set static ip using netplan

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1834285/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to