Switching back and forth between channels breaks
Bug #1590989 reported by
Evan
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
High
|
Unassigned |
Bug Description
If you `snap refresh --channel=edge foo; snap refresh --channel=stable foo`, the second command will fail, since you already have the revision from stable. John points out there are two problems here:
1. --refresh to a channel for which you already have the snap should work
2. asking to switch to a revision you have should work
Changed in snappy: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: eco-team |
affects: | snappy → snapd |
To post a comment you must log in.
ev@elsa: ~/jenkins- snap$ ps aux | grep jenk HOME=/var/ snap/jenkins/ 3 -Djava. awt.headless= true -jar /snap/jenkins/ 3/war/jenkins. war x-jenkins. py ~/jenkins- snap$ snap refresh --channel=edge jenkins ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ==] 100.00 % 4.02 MB/s
root 4095 0.3 13.6 4589688 551320 ? Ssl 14:49 0:46 java -DJENKINS_
ev 17927 0.0 0.1 40900 7608 pts/0 S+ 15:57 0:00 vim parts/plugins/
ev 32505 0.0 0.0 14224 984 pts/2 S+ 18:05 0:00 grep --color=auto jenk
ev@elsa:
96.66 MB / 96.66 MB [======
Name Version Rev Developer ~/jenkins- snap$ ps aux | grep jenk x-jenkins. py HOME=/var/ snap/jenkins/ 5 -Djava. awt.headless= true -jar /snap/jenkins/ 5/war/jenkins. war ~/jenkins- snap$ grep dandrea /var/snap/ jenkins/ current/ -rsI jenkins/ current/ users/ev/ config. xml: <emailAddress> <email address hidden> </emailAddress> ~/jenkins- snap$ snap refresh --channel=stable jenkins ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ==] 100.00 % 3.46 MB/s
jenkins 2.9-SNAPSHOT 5 ev
ev@elsa:
ev 17927 0.0 0.1 40900 7608 pts/0 S+ 15:57 0:00 vim parts/plugins/
root 32649 170 4.0 4526868 164392 ? Ssl 18:05 0:05 java -DJENKINS_
ev 32687 0.0 0.0 14224 1028 pts/2 S+ 18:05 0:00 grep --color=auto jenk
ev@elsa:
/var/snap/
ev@elsa:
96.67 MB / 96.67 MB [======
Name Version Rev Developer ~/jenkins- snap$ ps aux | grep jenk HOME=/var/ snap/jenkins/ 4 -Djava. awt.headless= true -jar /snap/jenkins/ 4/war/jenkins. war x-jenkins. py ~/jenkins- snap$ grep dandrea /var/snap/ jenkins/ current/ -rsI jenkins/ current/ users/ev/ config. xml: <emailAddress> <email address hidden> </emailAddress> ~/jenkins- snap$ snap refresh --channel=edge jenkins
jenkins 2.8 4 ev
ev@elsa:
root 439 211 11.8 4578252 478012 ? Ssl 18:07 0:21 java -DJENKINS_
ev 541 0.0 0.0 14224 936 pts/2 S+ 18:07 0:00 grep --color=auto jenk
ev 17927 0.0 0.1 40900 7608 pts/0 S+ 15:57 0:00 vim parts/plugins/
ev@elsa:
/var/snap/
ev@elsa:
error: cannot perform the following tasks: ~/jenkins- snap$ snap list 20160419. 13-26 24 canonical 20-55 109 canonical ~/jenkins- snap$ mount nodev,noexec, relatime) nodev,noexec, relatime) relatime, size=2005932k, nr_inodes= 501483, mode=755) noexec, relatime, gid=5,mode= 620,ptmxmode= 000) noexec, relatime, size=404656k, mode=755) erro...
- Download snap "jenkins" from channel "edge" (revision 5 of snap "jenkins" already installed)
ev@elsa:
Name Version Rev Developer
canonical-pc-linux 4.4.0-18+
cassandra 3.5 1 ev
jenkins 2.8 4 ev
snappy-debug 0.18 19 canonical
ubuntu-core 16.04+20160419.
ev@elsa:
sysfs on /sys type sysfs (rw,nosuid,
proc on /proc type proc (rw,nosuid,
udev on /dev type devtmpfs (rw,nosuid,
devpts on /dev/pts type devpts (rw,nosuid,
tmpfs on /run type tmpfs (rw,nosuid,
/dev/vda1 on / type ext4 (rw,relatime,