Bug 1733325 - ovit-guest-agent system container naming changes
Summary: ovit-guest-agent system container naming changes
Keywords:
Status: MODIFIED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rhel-server-atomic
Version: 7.6
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Colin Walters
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-25 17:31 UTC by Alex Jia
Modified: 2019-08-27 10:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Cause: The ovirt-guest-agent is incorrectly tagged. Consequence: The ovirt-guest-agent may not start correctly. Workaround (if any): Tag the existing image correctly and re-install the guest agent. 1. atomic -y containers delete ovirt-guest-agent-1.0.16-30 2. atomic images tag registry.access.redhat.com/rhev4/ovirt-guest-agent:1.0.16-30 registry.access.redhat.com/rhev4/ovirt-guest-agent:latest 3. atomic -y images delete registry.access.redhat.com/rhev4/ovirt-guest-agent:1.0.16-30 4. atomic install --system registry.access.redhat.com/rhev4/ovirt-guest-agent:latest Result: The ovirt-guest-agent starts successfully.
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Alex Jia 2019-07-25 17:31:11 UTC
Description of problem:
For details, please see similar bug 1733323, if customers start their RHELAH installs from new cloud images, official document need to be updated - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/managing_containers/running_system_containers#using_the_ovirt_guest_agent_system_container_image_for_red_hat_virtualization

Version-Release number of selected component (if applicable):

$  atomic host status
State: idle; auto updates disabled
Deployments:
● ostree://rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
                   Version: 7.6.6 (2019-07-24 08:47:27)
                    Commit: 33bb37a7d207ce653eab70306d18deea7daf444b6b7f7aeadef722f96d7e8e6d
              GPGSignature: Valid signature by 567E347AD0044ADE55BA8A5F199E2F91FD431D51

$ sudo runc list
ID                            PID         STATUS      BUNDLE                                                     CREATED                          OWNER
ovirt-guest-agent-1.0.16-30   704         running     /var/lib/containers/atomic/ovirt-guest-agent-1.0.16-30.0   2019-07-25T07:47:21.873093591Z   root


How reproducible:
always

Steps to Reproduce:
1. systemctl status/enable/start/stop/... ovirt-guest-agent


Actual results:


Expected results:


Additional info:

Comment 2 Micah Abbott 2019-07-26 16:44:43 UTC
The workaround for this would be to:

1.  Delete the existing system container that was installed
2.  Tag the container images with `:latest`
3.  Re-install the system container with the `:latest` tag

```
# atomic images list
   REPOSITORY                                           TAG         IMAGE ID       CREATED            VIRTUAL SIZE   TYPE      
>  registry.access.redhat.com/rhev4/ovirt-guest-agent   1.0.16-30   7864d6588cc9   2019-07-24 12:40   79.47 MB       ostree    

# atomic containers list -a --no-trunc
   CONTAINER ID                IMAGE                                                        NAME                        COMMAND                                                           CREATED          STATE     
 BACKEND    RUNTIME   
   ovirt-guest-agent-1.0.16-30 registry.access.redhat.com/rhev4/ovirt-guest-agent:1.0.16-30 ovirt-guest-agent-1.0.16-30 /usr/bin/python /usr/share/ovirt-guest-agent/ovirt-guest-agent.py 2019-07-24 12:40 failed    
 ostree     /usr/bin/r

# atomic -y containers delete ovirt-guest-agent-1.0.16-30
The following containers will be deleted.

   ID           NAME                 IMAGE_NAME                STORAGE   
   ovirt-guest- ovirt-guest-agent-1. registry.access.redhat.co ostree    
systemctl disable --now ovirt-guest-agent-1.0.16-30
systemctl daemon-reload
systemd-tmpfiles --remove /etc/tmpfiles.d/ovirt-guest-agent-1.0.16-30.conf

# atomic images tag registry.access.redhat.com/rhev4/ovirt-guest-agent:1.0.16-30 registry.access.redhat.com/rhev4/ovirt-guest-agent:latest

# atomic images list
   REPOSITORY                                           TAG         IMAGE ID       CREATED            VIRTUAL SIZE   TYPE      
   registry.access.redhat.com/rhev4/ovirt-guest-agent   latest      7864d6588cc9   2019-07-24 12:40   79.47 MB       ostree    
   registry.access.redhat.com/rhev4/ovirt-guest-agent   1.0.16-30   7864d6588cc9   2019-07-24 12:40   79.47 MB       ostree    

# atomic -y images delete registry.access.redhat.com/rhev4/ovirt-guest-agent:1.0.16-30
The following images will be deleted.

   IMAGE                                                          STORAGE
   registry.access.redhat.com/rhev4/ovirt-guest-agent:1.0.16-30   ostree

# atomic images list
   REPOSITORY                                           TAG      IMAGE ID       CREATED            VIRTUAL SIZE   TYPE      
   registry.access.redhat.com/rhev4/ovirt-guest-agent   latest   7864d6588cc9   2019-07-24 12:40   79.47 MB       ostree    

# atomic install --system registry.access.redhat.com/rhev4/ovirt-guest-agent:latest
Extracting to /var/lib/containers/atomic/ovirt-guest-agent.0
systemctl daemon-reload
systemd-tmpfiles --create /etc/tmpfiles.d/ovirt-guest-agent.conf
systemctl enable ovirt-guest-agent

# systemctl status ovirt-guest-agent
● ovirt-guest-agent.service - oVirt Guest Agent Container
   Loaded: loaded (/etc/systemd/system/ovirt-guest-agent.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
```


Note You need to log in before you can comment on or make changes to this bug.