Skip to content
This repository was archived by the owner on Oct 17, 2022. It is now read-only.

ccloudvm create as non-root user fails at "Building CIAO" step #89

@jdandrea

Description

@jdandrea

It was recommended to only create the ciao ccloudvm instance as a non-root user.

For the non-root user on the ccloudvm host:

  • Account was created with sudo access
  • Appropriate proxy env vars are sourced at login-time
  • User was added to kvm group via sudo gpasswd -a $USER kvm
  • User was logged out and logged in again
  • Account has a local go directory with ciao-project pkg, et. al
  • User PATH includes /home/USERNAME/go/bin
  • GOPATH is /home/USERNAME/go
  • GOROOT is /usr/local/go

Next:

  • ccloudvm was torn down under the previously used root account
  • ccloudvm was setup under the non-root user account

See attached cloud-init-output.log from the ccloudvm instance. Operations were not permitted under /home/jdandrea/go (e.g., changing ownership from root to jdandrea, presumably), and ciao installation failed as a result.

Here's what appeared on the ccloudvm instance during the same time:

Booting VM : [OK]
Adding singlevm to /etc/hosts : [OK]
Mounting /home/jdandrea/go : [OK]
Add docker GPG key : [OK]
Adding docker repo : [OK]
Retrieving updated list of packages : [OK]
Install docker-ce : [OK]
Adding user jdandrea to the docker group : [OK]
Configuring docker proxies : [OK]
Downloading Go : [OK]
Unpacking Go : [OK]
Add Google GPG key : [OK]
Retrieving updated list of packages : [OK]
Installing kubectl : [OK]
Installing GCC : [OK]
Installing Make : [OK]
Installing QEMU : [OK]
Installing xorriso : [OK]
Installing ceph-common : [OK]
Auto removing unused components : [OK]
Building ciao : [FAIL]
Installing Go development utils : [OK]
Pulling ceph/demo : [OK]
Downloading Fedora-Cloud-Base-24-1.2.x86_64.qcow2 : [FAIL]
Downloading xenial-server-cloudimg-amd64-disk1.img : [OK]
Downloading CNCI image : [OK]
Downloading latest clear cloud image : [OK]
VM successfully created!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions