Greetings all, this is my first discourse post.
I’m experiencing problems getting maas init to function properly either via evaluation or production. Problem occurs in 2.8 as well as 2.9.
Installed maas via snap: snap install maas --channel=2.9/beta
This appears to work fine
However snap install of the test database failed.
Switching to production mode. I installed Postgres per the instructions, created the database, user, etc.
Attempts to MAAS INIT fail:
maas init region+rack --database-uri “postgres://maas:password@localhost/maas”
Traceback (most recent call last):
File “/snap/maas/10507/bin/maas”, line 8, in
sys.exit(main())
File “/snap/maas/10507/lib/python3.8/site-packages/maascli/init.py”, line 44, in main
options.execute(options)
File “/snap/maas/10507/lib/python3.8/site-packages/maascli/snappy.py”, line 433, in call
raise exc
File “/snap/maas/10507/lib/python3.8/site-packages/maascli/snappy.py”, line 430, in call
self.handle(options)
File “/snap/maas/10507/lib/python3.8/site-packages/maascli/snappy.py”, line 608, in handle
default=get_default_url(),
File “/snap/maas/10507/lib/python3.8/site-packages/maascli/snappy.py”, line 141, in get_default_url
gateway_ip = get_default_gateway_ip()
File “/snap/maas/10507/lib/python3.8/site-packages/maascli/snappy.py”, line 123, in get_default_gateway_ip
gateways = netifaces.gateways()
PermissionError: [Errno 1] Operation not permitted
I’m stuck, not sure what to do. All instruction paths on maas.io followed for both 2.8 and 2.9 with no success.
Thank you for your assistance!
Reggie