Update doesn't work when upgrading from devel r145 to r383 devel-proposed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Critical
|
James Hunt |
Bug Description
kick@kick-
Les ports de cette machine seront les suivants:
SSH: 8022
HTTP: 8080
HTTPS: 8443
Un rappel des ports est disponible: dev.ports
kick@kick-
ssh_exchange_
kick@kick-
Warning: Permanently added '[127.0.0.1]:8022' (ECDSA) to the list of known hosts.
Welcome to Ubuntu Vivid Vervet (development branch) (GNU/Linux 3.19.0-12-generic x86_64)
* Documentation: https:/
Welcome to the Ubuntu Core rolling development release.
* See https:/
It's a brave new world here in snappy Ubuntu Core! This machine
does not use apt-get or deb packages. Please see 'snappy --help'
for app installation and transactional updates.
Last login: Tue Apr 14 15:46:36 2015
ubuntu@localhost:~$ cat /etc/system-
channel: ubuntu-core/devel
ubuntu@localhost:~$ cat /writable/
channel: ubuntu-core/devel
ubuntu@localhost:~$ sudo mount -o remount rw /
ubuntu@localhost:~$ sudo mount -o remount rw /writable/
ubuntu@localhost:~$ sudo sed -i s/devel/
ubuntu@localhost:~$ cat /etc/system-
channel: ubuntu-
ubuntu@localhost:~$ sudo sed -i s/devel/
ubuntu@localhost:~$ cat /writable/
channel: ubuntu-
ubuntu@localhost:~$ sudo mount -o remount ro /
ubuntu@localhost:~$ sudo mount -o remount ro /writable/
ubuntu@localhost:~$ sudo reboot
Connection to 127.0.0.1 closed by remote host.
Connection to 127.0.0.1 closed.
kick@kick-
Warning: Permanently added '[127.0.0.1]:8022' (ECDSA) to the list of known hosts.
Welcome to Ubuntu Vivid Vervet (development branch) (GNU/Linux 3.19.0-12-generic x86_64)
* Documentation: https:/
Welcome to the Ubuntu Core rolling development release.
* See https:/
It's a brave new world here in snappy Ubuntu Core! This machine
does not use apt-get or deb packages. Please see 'snappy --help'
for app installation and transactional updates.
Last login: Wed Apr 15 14:08:18 2015 from 10.0.2.2
ubuntu@localhost:~$ cat /writable/
channel: ubuntu-
ubuntu@localhost:~$ cat /writable/
[service]
base: system-
http_port: 80
https_port: 443
channel: ubuntu-
device: generic_amd64
build_number: 145
version_detail: ubuntu=
ubuntu@localhost:~$ cat /etc/system-
channel: ubuntu-
ubuntu@localhost:~$ cat /etc/system-
[service]
base: system-
http_port: 80
https_port: 443
channel: ubuntu-
device: generic_amd64
build_number: 146
version_detail: ubuntu=
ubuntu@localhost:~$ sudo snappy update
Installing ubuntu-core (384)
Starting download of ubuntu-core
135.00 MB / 135.00 MB [======
Done
error from system-image-cli: ('%s exited with %s:\n%s', ['ubuntu-
Journalctl is not very verbose:
Apr 15 14:11:06 localhost.
Apr 15 14:11:36 localhost.
Apr 15 14:11:36 localhost.
Apr 15 14:12:35 localhost.
Apr 15 14:12:35 localhost.
Apr 15 14:12:35 localhost.
Apr 15 14:13:04 localhost.
Apr 15 14:17:01 localhost.
Apr 15 14:17:01 localhost.
Apr 15 14:17:01 localhost.
Apr 15 14:17:13 localhost.
Apr 15 14:17:13 localhost.
Related branches
- Ubuntu branches: Pending requested
-
Diff: 108 lines (+69/-3)3 files modifieddebian/changelog (+7/-0)
ubuntucoreupgrader/tests/test_upgrader.py (+60/-0)
ubuntucoreupgrader/upgrader.py (+2/-3)
Changed in snappy-ubuntu: | |
importance: | Undecided → High |
Changed in snappy-ubuntu: | |
importance: | High → Critical |
Changed in snappy-ubuntu: | |
assignee: | nobody → James Hunt (jamesodhunt) |
summary: |
- Update doesn't work when upgrading from devel r146 to r383 devel- + Update doesn't work when upgrading from devel r145 to r383 devel- proposed |
Changed in snappy-ubuntu: | |
status: | New → Fix Committed |
Changed in snappy-ubuntu: | |
status: | Fix Committed → Won't Fix |
status: | Won't Fix → Fix Released |
affects: | snappy-ubuntu → snappy |
Additional traces:
root@localhost:~# ubuntu-core-upgrade dd02f728677fa1c cdf2646ca5bbdb7 7d747a1c180a10d 0e80e0c9419d2ee a53d.tar. xz system-ro-788/ dd02f728677fa1c cdf2646ca5bbdb7 7d747a1c180a10d 0e80e0c9419d2ee a53d.tar. xz.asc ubuntu- ff327cc343626da ccb831f8a87034e d975c7be73a02cc 3d264a738f8ff57 91e0.tar. xz ff327cc343626da ccb831f8a87034e d975c7be73a02cc 3d264a738f8ff57 91e0.tar. xz.asc tar.xz. asc ubuntu_ command. applying tar.xz version-384.tar.xz tar.xz. asc version- 384.tar. xz.asc cache/ubuntu_ command. applying ubuntu- core-upgrade" , line 182, in <module> ubuntu- core-upgrade" , line 155, in main upgrade( options) ubuntu- core-upgrade" , line 98, in prepare_upgrade options, commands, remove_list) ubuntu- core-upgrade" , line 75, in upgrade python3/ dist-packages/ ubuntucoreupgra der/upgrader. py", line 579, in run dispatcher[ cmd](args) python3/ dist-packages/ ubuntucoreupgra der/upgrader. py", line 879, in _cmd_update options. root_dir) ) python3. 4/tarfile. py", line 1973, in extractall python3/ dist-packages/ ubuntucoreupgra der/upgrader. py", line 453, in tar_generator cache/system/ usr/share/ apparmor/ easyprof/ policygroups/ ubuntu- snappy' cache/system/ usr/share/ apparmor/ easyprof/ policygroups/ ubuntu- snappy
ERROR: need command file
root@localhost:~# ubuntu-core-upgrade /writable/
cache/ lost+found/ system-data/ user-data/
root@localhost:~# ubuntu-core-upgrade /writable/cache/
assets/ system/
device-
device-
image-master.tar.xz ubuntu-
image-master.
image-signing.
image-signing.
root@localhost:~# ubuntu-core-upgrade /writable/
I: preparing root filesystem
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
prepare_
File "/usr/bin/
upgrade(
File "/usr/bin/
upgrader.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
for tarinfo in members:
File "/usr/lib/
os.unlink(path)
IsADirectoryError: [Errno 21] Is a directory: '/writable/
root@localhost:~# ls -l /writable/
total 4
drwxr-xr-x 2 root root 4096 Apr 10 16:54 1.3
root@localhost:~#