Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-update flag cleared on images in cluster #1008

Closed
cquike opened this issue Jul 17, 2024 · 2 comments
Closed

Auto-update flag cleared on images in cluster #1008

cquike opened this issue Jul 17, 2024 · 2 comments
Assignees
Labels
Bug Confirmed to be a bug Easy Good for new contributors
Milestone

Comments

@cquike
Copy link

cquike commented Jul 17, 2024

Required information

Issue description

According to the documentation on Auto Update (https://linuxcontainers.org/incus/docs/main/image-handling/#auto-update) the feature is enabled for the incus image copy command if the --auto-update option is given and an alias is set. However it seems that it does not have any effect: the images have the Auto update: disabled property and indeed are not updated every six hours.
Just in case it makes a difference: this is a cluster setup with four members.

Steps to reproduce

  1. incus image copy --alias my_alias --auto-update --public images:almalinux/9/amd64 local:
  2. incus image info my_alias | grep Auto
  3. Check after 6 hours that the image has not been updated
@stgraber
Copy link
Member

stgraber@dakara:~$ incus image copy --alias my_alias --auto-update --public images:almalinux/9/amd64 local:
Image copied successfully!                   
stgraber@dakara:~$ incus image info my_alias
Fingerprint: 832b6584dd73fdd50f54b76cafde3b21fb75526c15482f0c32928be4a655a09d
Size: 111.12MiB
Architecture: x86_64
Type: container
Public: yes
Timestamps:
    Created: 2024/07/15 20:00 EDT
    Uploaded: 2024/07/17 10:21 EDT
    Expires: 1969/12/31 19:00 EST
    Last used: never
Properties:
    type: squashfs
    variant: default
    architecture: amd64
    description: Almalinux 9 amd64 (20240716_23:08)
    os: Almalinux
    release: 9
    requirements.cdrom_agent: true
    serial: 20240716_23:08
Aliases:
    - my_alias
Cached: no
Auto update: enabled
Source:
    Server: https://images.linuxcontainers.org
    Protocol: simplestreams
    Alias: almalinux/9/amd64
Profiles:
    - default

@stgraber
Copy link
Member

Looks like it may be a cluster issue, I just had it show disabled on a test cluster too.

@stgraber stgraber changed the title --auto-update option if incus copy seems not to have any effect. Auto-update flag cleared on images in cluster Jul 17, 2024
@stgraber stgraber self-assigned this Jul 17, 2024
@stgraber stgraber added Bug Confirmed to be a bug Easy Good for new contributors labels Jul 17, 2024
@stgraber stgraber added this to the incus-6.4 milestone Jul 17, 2024
stgraber added a commit to stgraber/incus that referenced this issue Jul 25, 2024
Closes lxc#1008

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
stgraber added a commit to stgraber/incus that referenced this issue Jul 25, 2024
Closes lxc#1008

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@hallyn hallyn closed this as completed in a0b00ec Jul 25, 2024
stgraber added a commit that referenced this issue Jul 26, 2024
Closes #1008

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed to be a bug Easy Good for new contributors
Development

No branches or pull requests

2 participants