Is there some easy way to deploy an "older" committed tree. Right now the process that I think should work doesn't: -bash-4.3# ostree pull fedora-atomic c737148aba8c627b6375f015596aaee35a5c6790b1dd7edbbf25d0738129e8fa 729 metadata, 3799 content objects fetched; 164446 KiB transferred in 147 seconds -bash-4.3# ostree admin status * fedora-atomic ba7ee9475c462c9265517ab1e5fb548524c01a71709539bbe744e5fdccf6288b.0 origin refspec: fedora-atomic:fedora-atomic/f21/x86_64/docker-host -bash-4.3# ostree admin deploy c737148aba8c627b6375f015596aaee35a5c6790b1dd7edbbf25d0738129e8fa Freed objects: 308.6 MB error: No such metadata object c737148aba8c627b6375f015596aaee35a5c6790b1dd7edbbf25d0738129e8fa.commit The objects that I just downloaded get cleaned up when I run ostree admin deploy. I did try with the --retain arg (even though I don't think that's exactly what --retain is meant for) as well with the same results. So I'm thinking there needs to be some way to make ostree think the ref actually includes the commit I just downloaded. So I try: -bash-4.3# ostree pull fedora-atomic c737148aba8c627b6375f015596aaee35a5c6790b1dd7edbbf25d0738129e8fa 729 metadata, 3799 content objects fetched; 164446 KiB transferred in 91 seconds -bash-4.3# ostree reset fedora-atomic:fedora-atomic/f21/x86_64/docker-host c737148aba8c627b6375f015596aaee35a5c6790b1dd7edbbf25d0738129e8fa error: No such metadata object eaf8fa6ae24ec0b96ff911d77624e6d98c2db2f6085fcad636e1daf1562d4ac9.commit I guess it is complaining that the previous commit doesn't exist? ok let's go get it: -bash-4.3# ostree pull fedora-atomic eaf8fa6ae24ec0b96ff911d77624e6d98c2db2f6085fcad636e1daf1562d4ac9 error: Server returned status 404: Not Found Nope. Hmmm.. The only way that I have found to work is to: -bash-4.3# ostree pull fedora-atomic c737148aba8c627b6375f015596aaee35a5c6790b1dd7edbbf25d0738129e8fa 729 metadata, 3799 content objects fetched; 164446 KiB transferred in 91 seconds -bash-4.3# echo c737148aba8c627b6375f015596aaee35a5c6790b1dd7edbbf25d0738129e8fa > /ostree/repo/refs/remotes/fedora-atomic/fedora-atomic/f21/x86_64/docker-host -bash-4.3# ostree admin deploy fedora-atomic:fedora-atomic/f21/x86_64/docker-host Copying /etc changes: 26 modified, 4 removed, 36 added Transaction complete; bootconfig swap: yes deployment count change: 1 -bash-4.3# ostree admin status fedora-atomic c737148aba8c627b6375f015596aaee35a5c6790b1dd7edbbf25d0738129e8fa.0 origin refspec: fedora-atomic:fedora-atomic/f21/x86_64/docker-host * fedora-atomic ba7ee9475c462c9265517ab1e5fb548524c01a71709539bbe744e5fdccf6288b.0 origin refspec: fedora-atomic:fedora-atomic/f21/x86_64/docker-host Moving around to different commits should really be easier than this. Maybe I am doing it wrong? Thanks, Dusty
Attachment:
pgp19kfR1J5fJ.pgp
Description: PGP signature