Skip to content

setup / reload fails on brand new VM #85

@hash-d

Description

@hash-d

Running a playbook that uses the skupper.v2.system action setup (2.0) or reload (2.1) on a brand new VM fails silently.

2.0:

TASK [Start it] ***************************************************************************************************************************************************************************************************
task path: /tmp/test/asdf.yaml:12                   
[WARNING]: error writing service file '/home/cloud-user/.config/systemd/user/skupper-asdf.service': [Errno 2] No such file or directory: '/home/cloud-user/.config/systemd/user/skupper-asdf.service'
changed: [localhost] => {"changed": true, "gid": 1000, "group": "cloud-user", "links": {}, "mode": "0755", "owner": "cloud-user", "path": "/home/cloud-user/.local/share/skupper/namespaces/asdf", "secontext": "unconfined_u:object_r:container_file_t:s0", "size": 50, "state": "directory", "uid": 1000}           

2.1:

TASK [Start it] ***************************************************************************************************************************************************************************************************
[WARNING]: error writing service file '/home/cloud-user/.config/systemd/user/skupper-asdf.service': [Errno 2] No such file or directory: '/home/cloud-user/.config/systemd/user/skupper-asdf.service'
changed: [localhost]

In both cases, the warning is logged, but the actual task is reported as changed, which is a successful state.

The issue was detected while running the Integration tests on 2.0, where it fails on the test Assert that the systemd service exists.

I'm not sure why, the 2.1 tests pass, despite the problem existing on that branch as well.

As far as the testing is concerned, the issue is easily bypassed by issuing the command below:

$ mkdir -p ~/.config/systemd/user/

However, for an actual user setting up a brand new server this would be more than a nuissance.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions