openshift / pivot Goto Github PK
View Code? Open in Web Editor NEWPivots from on ostree OS/Deployment to another via containers
License: Apache License 2.0
Pivots from on ostree OS/Deployment to another via containers
License: Apache License 2.0
flags
is fine, but quite lacking for parsing the input. Switch to cobra
for easier to follow code and better parsing.
/cc @cgwalters
E.g.:
ERROR: logging before flag.Parse: I0615 15:14:29.656551 1415 run.go:15] Running: podman rmi <registry>:3.10@sha256:2c56c7fbfeafc3adf5874fb323be5e3f3c9a7eb10f99556d61d7f9bc16e9b838
168863f78fc62f5d864fc0081abb49e1acc982ce0ce7728de71e1e97862fe35e
ERROR: logging before flag.Parse: I0615 15:14:31.367064 1415 run.go:15] Running: systemctl reboot
Looks similar to kubernetes/kubernetes#17162.
As there is a pivot.spec file, I'm wondering if there is any repository where folks can download it (maybe make it available in EPEL for upstream?)
pivot version 0.0.1 (613316e4504010f953e1df4587152ef09c19f444)
Running: skopeo inspect docker://registry.svc.ci.openshift.org/rhcos/os-maipo:latest
error pulling image "registry.svc.ci.openshift.org/rhcos/os-maipo:latest@sha256:31220b35b7ca38d431b7e699ad848222cd14cef55fe219570086e31c78a15af5": unable to pull registry.svc.ci.openshift.org/rhcos/os-maipo:latest@sha256:31220b35b7ca38d431b7e699ad848222cd14cef55fe219570086e31c78a15af5: error getting default registries to try: unable to parse 'registry.svc.ci.openshift.org/rhcos/os-maipo:latest@sha256:31220b35b7ca38d431b7e699ad848222cd14cef55fe219570086e31c78a15af5': Docker references with both a tag and digest are currently not supported
F0911 15:59:20.056969 1308 run.go:22] podman: exit status 125
Trying to pivot from CentOS atomic host 7.1812:
[root@rhcos01 ~]# curl -L https://github.com/openshift/pivot/releases/download/0.0.3/pivot -o /tmp/pivot
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 596 0 596 0 0 1090 0 --:--:-- --:--:-- --:--:-- 1091
100 3439k 100 3439k 0 0 2588k 0 0:00:01 0:00:01 --:--:-- 7660k
[root@rhcos01 ~]# chmod a+x /tmp/pivot
[root@rhcos01 ~]# /tmp/pivot XXX/rhcos/maipo@sha256:XXX
pivot version 0.0.3 (fb4c73f5cd9f552059b5e35377b2760224416b0f)
I0211 08:23:17.720742 27666 run.go:16] Running: rpm-ostree status --json
I0211 08:23:18.024209 27666 run.go:16] Running: skopeo inspect docker://XXX/rhcos/maipo@sha256:XXX
I0211 08:23:20.542784 27666 root.go:89] Resolved to: XXX/rhcos/maipo@sha256:XXX
I0211 08:23:20.542811 27666 run.go:16] Running: podman pull XXX/rhcos/maipo@sha256:XXX
Trying to pull XXX/rhcos/maipo@sha256:XXX...Getting image source signatures
Copying blob sha256:1c6e94365414c4751de1032a1446c5dc3e74002b803527e7ad2d09cac474cc46
591.20 MB / 591.20 MB [===================================================] 12s
Copying config sha256:1930b338e555e4d8bbe85b881309d8db66b1a1c808cb2c317ec71f588683477e
412 B / 412 B [============================================================] 0s
Writing manifest to image destination
Storing signatures
1930b338e555e4d8bbe85b881309d8db66b1a1c808cb2c317ec71f588683477e
I0211 08:23:54.246092 27666 run.go:16] Running: podman kill ostree-container-pivot
unable to find container ostree-container-pivot: no container with name or ID ostree-container-pivot found: no such container
W0211 08:23:54.329188 27666 run.go:69] (ignored) podman: exit status 125
I0211 08:23:54.329232 27666 run.go:16] Running: podman rm -f ostree-container-pivot
unable to find container ostree-container-pivot: no container with name or ID ostree-container-pivot found: no such container
W0211 08:23:54.532822 27666 run.go:69] (ignored) podman: exit status 125
I0211 08:23:54.532874 27666 run.go:16] Running: podman create --net=none --name ostree-container-pivot XXX/rhcos/maipo@sha256:XXX
I0211 08:23:54.800028 27666 run.go:16] Running: podman mount d4cb185cc60116928eade00a27b313aaa1ca74d35d2a9aacc416e5c7c974db87
I0211 08:23:54.979589 27666 root.go:114] Pivoting to: 47.312 (15d0f8f272ad7cb53f1dfcd90b7a0e120396ee90ba5b0942c9395a1de0f68437)
I0211 08:23:54.979638 27666 run.go:16] Running: rpm-ostree rebase --experimental /var/lib/containers/storage/overlay/c2795dceb7c8a0341c469a173763465bbccb7f4d0ce0ae9aaee7d0a5aa5c8bc3/merged/srv/repo:15d0f8f272ad7cb53f1dfcd90b7a0e120396ee90ba5b0942c9395a1de0f68437 --custom-origin-url pivot://XXX/rhcos/maipo@sha256:XXX --custom-origin-description Managed by pivot tool
error: Unknown option --custom-origin-url
F0211 08:23:54.998593 27666 run.go:62] rpm-ostree: exit status 1
rpm-ostree:
# rpm-ostree --version
rpm-ostree:
Version: 2018.5
Git: 4a4d4fb373d9c0c276d78149f68fff9ab90ab3a0
Features:
The instructions for using pivot
in our internal docs (https://url.corp.redhat.com/redhat-coreos) instruct users to pull the 0.0.0
release, but that is missing an important change about the location of the repo, commit 4ce06e3.
Looks like we could use a new release and updates to the instructions internally.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.