[Bug 1941924] Re: Cannot find the "/usr/share/ubuntu-scap-security-guides" directory.

2021-10-29 Thread Launchpad Bug Tracker
[Expired for ubuntu-advantage-tools (Ubuntu) because there has been no
activity for 60 days.]

** Changed in: ubuntu-advantage-tools (Ubuntu)
   Status: Incomplete => Expired

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

Title:
  Cannot find the "/usr/share/ubuntu-scap-security-guides" directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1941924/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1941924] Re: Cannot find the "/usr/share/ubuntu-scap-security-guides" directory.

2021-08-30 Thread Lucas Albuquerque Medeiros de Moura
Hi Ronnie, just some questions around this issue:

1) Does the following error happened when running: ua enable cis ?
2) What cloud are you running ua on ?
3) What is the output of: cloud-init status --long

** Changed in: ubuntu-advantage-tools (Ubuntu)
   Status: New => Incomplete

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

Title:
  Cannot find the "/usr/share/ubuntu-scap-security-guides" directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1941924/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1941924] Re: Cannot find the /usr/share/ubuntu-scap-security-guides" "directory.

2021-08-27 Thread Ronnie
** Description changed:

- ubuntu advatnage log extract
+ I am trying to run the cis benchmark config. However, I was unable to
+ find the directory "/usr/share/ubuntu-scap-security-guides". On checking
+ the logs, I got a number of errors. Below is the ubuntu advantage log
+ extract.
  
-  File "/usr/lib/python3/dist-packages/uaclient/clouds/identity.py", line 65, 
in get_cloud_type
- out, _err = util.subp(["cloud-id"])
-   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 638, in subp
- out, err = _subp(args, rcs, capture, timeout, env=env)
-   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 595, in _subp
- stderr=err.decode("utf-8"),
+  File "/usr/lib/python3/dist-packages/uaclient/clouds/identity.py", line 65, 
in get_cloud_type
+ out, _err = util.subp(["cloud-id"])
+   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 638, in subp
+ out, err = _subp(args, rcs, capture, timeout, env=env)
+   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 595, in _subp
+ stderr=err.decode("utf-8"),
  uaclient.util.ProcessExecutionError: Failed running command 'cloud-id' 
[exit(1)]. Message: ERROR: File not found '/run/cloud-init/instance-data.json'. 
Provide a path to instance data json file using --instance-data
  
  2021-08-28 00:12:43,901 - util.py:(419) [DEBUG]: Reading file: 
/var/lib/ubuntu-advantage/notices.json
  2021-08-28 00:12:43,903 - util.py:(686) [DEBUG]: Removing file: 
/var/lib/ubuntu-advantage/notices.json
  2021-08-28 00:21:01,621 - cli.py:(1327) [DEBUG]: Executed with sys.argv: 
['/usr/bin/ua', 'auto-attach']
  2021-08-28 00:21:01,622 - util.py:(419) [DEBUG]: Reading file: 
/var/lib/ubuntu-advantage/notices.json
  2021-08-28 00:21:01,622 - config.py:(442) [DEBUG]: File does not exist: 
/var/lib/ubuntu-advantage/notices.json
  2021-08-28 00:21:01,622 - util.py:(676) [DEBUG]: Writing file: 
/var/lib/ubuntu-advantage/notices.json
  2021-08-28 00:21:01,623 - util.py:(676) [DEBUG]: Writing file: 
/var/lib/ubuntu-advantage/private/lock
  2021-08-28 00:21:01,624 - util.py:(419) [DEBUG]: Reading file: 
/var/lib/ubuntu-advantage/notices.json
  2021-08-28 00:21:01,626 - config.py:(869) [DEBUG]: Using UA client 
configuration file at /etc/ubuntu-advantage/uaclient.conf
  2021-08-28 00:21:01,626 - util.py:(419) [DEBUG]: Reading file: 
/etc/ubuntu-advantage/uaclient.conf
  2021-08-28 00:21:02,608 - cli.py:(1297) [ERROR]: Unhandled exception, please 
file a bug
  Traceback (most recent call last):
-   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1256, in wrapper
- return func(*args, **kwargs)
-   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1342, in main
- return args.action(args, cfg)
-   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 148, in new_f
- return f(*args, **kwargs)
-   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 131, in new_f
- retval = f(args, cfg, **kwargs)
-   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 973, in 
action_auto_attach
- token = _get_contract_token_from_cloud_identity(cfg)
-   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 928, in 
_get_contract_token_from_cloud_identity
- instance = identity.cloud_instance_factory()
-   File "/usr/lib/python3/dist-packages/uaclient/clouds/identity.py", line 87, 
in cloud_instance_factory
- cloud_type = get_cloud_type()
-   File "/usr/lib/python3/dist-packages/uaclient/config.py", line 940, in new_f
- return f()
-   File "/usr/lib/python3/dist-packages/uaclient/clouds/identity.py", line 65, 
in get_cloud_type
- out, _err = util.subp(["cloud-id"])
-   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 638, in subp
- out, err = _subp(args, rcs, capture, timeout, env=env)
-   File "/usr/lib/python3/dist-packages/uaclient/util.py", line 595, in _subp
- stderr=err.decode("utf-8"),
+   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1256, in wrapper
+ return func(*args, **kwargs)
+   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1342, in main
+ return args.action(args, cfg)
+   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 148, in new_f
+ return f(*args, **kwargs)
+   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 131, in new_f
+ retval = f(args, cfg, **kwargs)
+   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 973, in 
action_auto_attach
+ token = _get_contract_token_from_cloud_identity(cfg)
+   File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 928, in 
_get_contract_token_from_cloud_identity
+ instance = identity.cloud_instance_factory()
+   File "/usr/lib/python3/dist-packages/uaclient/clouds/identity.py", line 87, 
in cloud_instance_factory
+ cloud_type = get_cloud_type()
+   File "/usr/lib/python3/dist-packages/uaclient/config.py", line 940, in new_f
+ return f()
+   File "/usr/lib/python3/dist-packages/uaclient/clouds/identity.py", line