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

Autobuild overlays option won't build combined runtime/system overlays #1216

Open
3 tasks done
Prepultrue opened this issue May 8, 2024 · 3 comments · May be fixed by #1249
Open
3 tasks done

Autobuild overlays option won't build combined runtime/system overlays #1216

Prepultrue opened this issue May 8, 2024 · 3 comments · May be fixed by #1249
Assignees
Labels
bug Something isn't working discuss A topic for discussion in a community meeting overlay Pertaining to the included Warewulf overlays
Milestone

Comments

@Prepultrue
Copy link
Contributor

Prepultrue commented May 8, 2024

Steps to reproduce

Remove the existing overlay image so autobuild should rebuild it

rm -f /var/lib/warewulf/provision/overlays/n001/__RUNTIME__.img{,.gz}

Request the runtime overlay image:

# curl -v --local-port 500-1000 'http://WW_HOST:9873/provision/00:11:22:33:44:55?stage=runtime'
*   Trying WW_HOST...
* TCP_NODELAY set
* Local port: 500
* Connected to WW_HOST (WW_HOST) port 9873 (#0)
> GET /provision/00:11:22:33:44:55?stage=runtime HTTP/1.1
> Host: WW_HOST:9873
> User-Agent: curl/7.61.1
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Date: Wed, 08 May 2024 03:15:47 GMT
< Content-Length: 0
< 
* Connection #0 to host WW_HOST left intact

Error message

[Wed May  8 13:17:27 AEST 2024] RECV   : hwaddr: 00:11:22:33:44:55, ipaddr: WW_HOST:500, stage: runtime
[Wed May  8 13:17:27 AEST 2024] SERV   : stage_file '/var/lib/warewulf/provision/overlays/n001/__RUNTIME__.img'
[Wed May  8 13:17:27 AEST 2024] ERROR  : Not found: /var/lib/warewulf/provision/overlays/n001/__RUNTIME__.img

Information on your system

# wwctl version 
wwctl version:	4.5.1-1
rpc version: apiPrefix:"rc1"  apiVersion:"1"  warewulfVersion:"4.5.1-1"
# cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.9 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.9 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.9"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"
# grep -B3 autobuild /etc/warewulf/warewulf.conf
warewulf:
  port: 9873
  secure: true
  autobuild overlays: true

General information

  • I have run wwctl version and reported the contents of /etc/os-release
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have captured and reported relevant error messages and logs
@Prepultrue Prepultrue added the bug Something isn't working label May 8, 2024
@Prepultrue
Copy link
Contributor Author

This seems to be because:

  • getOverlayFile will only every be called with either context or request_overlays/stage_overlays set
  • overlay.BuildOverlay immediately bails out when no overlayNames are supplied

@griznog
Copy link
Contributor

griznog commented May 8, 2024

More motivation for #1018 ?

@anderbubble anderbubble added this to the v4.5.x milestone May 8, 2024
@anderbubble anderbubble added the discuss A topic for discussion in a community meeting label May 8, 2024
@anderbubble anderbubble added the overlay Pertaining to the included Warewulf overlays label Jun 9, 2024
@JasonYangShadow
Copy link
Member

I can reproduce this issue locally after removing generated overlay runtime img

[root@localhost warewulf]# curl -v --local-port 500-1000 'http://localhost:9873/provision/11:22:33:44:55:66?stage=runtime'
*   Trying 127.0.0.1:9873...
* Local port: 500
* Connected to localhost (127.0.0.1) port 9873 (#0)
> GET /provision/11:22:33:44:55:66?stage=runtime HTTP/1.1
> Host: localhost:9873
> User-Agent: curl/7.76.1
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Content-Length: 5632
< Content-Type: application/x-raw-disk-image
< Last-Modified: Mon, 10 Jun 2024 07:28:36 GMT
< Date: Mon, 10 Jun 2024 07:37:34 GMT
< 
Warning: Binary output can mess up your terminal. Use "--output -" to tell 
Warning: curl to output it to your terminal anyway, or consider "--output 
Warning: <FILE>" to save to a file.
* Failure writing output to destination
* Closing connection 0
[root@localhost warewulf]# curl -v --local-port 500-1000 'http://localhost:9873/provision/11:22:33:44:55:66?stage=runtime'
*   Trying 127.0.0.1:9873...
* Bind to local port 500 failed, trying next
* Local port: 501
* Connected to localhost (127.0.0.1) port 9873 (#0)
> GET /provision/11:22:33:44:55:66?stage=runtime HTTP/1.1
> Host: localhost:9873
> User-Agent: curl/7.76.1
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Date: Mon, 10 Jun 2024 07:38:02 GMT
< Content-Length: 0
< 
* Connection #0 to host localhost left intact
[root@localhost warewulf]# cat /var/log/warewulfd.log 
[Mon Jun 10 06:46:32 UTC 2024] WARN   : Received SIGHUP, reloading...
[Mon Jun 10 06:50:21 UTC 2024] WARN   : Received SIGHUP, reloading...
[Mon Jun 10 06:51:39 UTC 2024] WARN   : Received SIGHUP, reloading...
[Mon Jun 10 07:28:31 UTC 2024] WARN   : Received SIGHUP, reloading...
[Mon Jun 10 07:28:31 UTC 2024] WARN   : Received SIGHUP, reloading...
[Mon Jun 10 07:29:53 UTC 2024] ERROR  : Bad status
could not obtain remote port from HTTP request: [::1]:35884
[Mon Jun 10 07:31:11 UTC 2024] ERROR  : Bad status
could not obtain remote port from HTTP request: [::1]:500
[Mon Jun 10 07:32:02 UTC 2024] ERROR  : Bad status
could not obtain remote port from HTTP request: [::1]:501
[Mon Jun 10 07:34:31 UTC 2024] ERROR  : Bad status
could not obtain remote port from HTTP request: [::1]:500
[Mon Jun 10 07:37:34 UTC 2024] RECV   : hwaddr: 11:22:33:44:55:66, ipaddr: 127.0.0.1:500, stage: runtime
[Mon Jun 10 07:37:34 UTC 2024] SERV   : stage_file '/var/local/warewulf/provision/overlays/n1/__RUNTIME__.img'
[Mon Jun 10 07:37:34 UTC 2024] SEND   :              n1: /var/local/warewulf/provision/overlays/n1/__RUNTIME__.img
[Mon Jun 10 07:38:02 UTC 2024] RECV   : hwaddr: 11:22:33:44:55:66, ipaddr: 127.0.0.1:501, stage: runtime
[Mon Jun 10 07:38:02 UTC 2024] SERV   : stage_file '/var/local/warewulf/provision/overlays/n1/__RUNTIME__.img'
[Mon Jun 10 07:38:02 UTC 2024] ERROR  : Not found: /var/local/warewulf/provision/overlays/n1/__RUNTIME__.img

@anderbubble anderbubble modified the milestones: v4.5.x, v4.5.4 Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working discuss A topic for discussion in a community meeting overlay Pertaining to the included Warewulf overlays
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants