** 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 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
  
  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: ubuntu-advantage-tools 27.2.2~18.04.1
  ProcVersionSignature: Microsoft 4.4.0-19041.1151-Microsoft 4.4.35
  Uname: Linux 4.4.0-19041-Microsoft x86_64
  ApportVersion: 2.20.9-0ubuntu7.24
  Architecture: amd64
  Date: Sat Aug 28 00:25:00 2021
  ProcEnviron:
-  TERM=xterm-256color
-  PATH=(custom, no user)
-  LANG=C.UTF-8
-  SHELL=/bin/bash
+  TERM=xterm-256color
+  PATH=(custom, no user)
+  LANG=C.UTF-8
+  SHELL=/bin/bash
  SourcePackage: ubuntu-advantage-tools
  UpgradeStatus: No upgrade log present (probably fresh install)

** Summary changed:

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

-- 
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

Reply via email to