Comment 2 for bug 1987702

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote : Re: Charm fails to build

I'm not sure what's going on, but I've just successfully built charm-ovn-chassis master using:

$ lsb_release -c
Codename: focal
$ charmcraft version
1.5.0
$ pwd
../charm-ovn-chassis
$ tox -e build

...

2022-08-26 11:43:25.432 Charm packed ok
build run-test: commands[2] | /home/alex/Projects/Canonical/git/opendev.org/x/charm-ovn-chassis/rename.sh
renaming ovn-chassis_*.charm to ovn-chassis.charm
pwd: /home/alex/Projects/Canonical/git/opendev.org/x/charm-ovn-chassis
total 29328
drwxr-xr-x 8 alex alex 4096 Aug 26 11:43 .
drwxr-xr-x 7 alex alex 4096 Jan 29 2020 ..
drwxrwxr-x 3 alex alex 4096 Apr 16 18:49 build
-rw-rw-r-- 1 alex alex 359 Apr 16 18:51 build-requirements.txt
-rw-rw-r-- 1 alex alex 876 Apr 16 18:51 charmcraft.yaml
drwxr-xr-x 8 alex alex 4096 Aug 26 11:34 .git
-rw-rw-r-- 1 alex alex 71 Apr 16 18:51 .gitignore
-rw-rw-r-- 1 alex alex 76 Aug 26 11:34 .gitreview
drwxr-xr-x 2 alex alex 4096 Jan 30 2020 layers
lrwxrwxrwx 1 alex alex 17 Apr 16 18:51 metadata.yaml -> src/metadata.yaml
-rw-rw-r-- 1 alex alex 260 Apr 16 18:51 osci.yaml
-rw-r--r-- 1 alex alex 14610349 Apr 16 20:22 ovn-chassis.charm
-rw-r--r-- 1 alex alex 15326143 Aug 26 11:43 ovn-chassis_ubuntu-20.04-amd64-s390x-ppc64el-arm64_ubuntu-22.04-amd64-s390x-ppc64el-arm64.charm
-rwxrwxr-x 1 alex alex 787 Jan 27 2022 pip.sh
lrwxrwxrwx 1 alex alex 13 Jan 29 2020 README.md -> src/README.md
-rw-rw-r-- 1 alex alex 197 Apr 16 18:51 rebuild
-rwxrwxr-x 1 alex alex 321 Apr 16 18:51 rename.sh
-rw-rw-r-- 1 alex alex 1062 Apr 16 18:50 requirements.txt
drwxr-xr-x 7 alex alex 4096 Aug 26 11:34 src
-rw-r--r-- 1 alex alex 44 May 12 2021 .stestr.conf
-rw-rw-r-- 1 alex alex 2010 Aug 26 11:34 test-requirements.txt
drwxrwxr-x 6 alex alex 4096 Aug 26 11:35 .tox
-rw-rw-r-- 1 alex alex 4193 Apr 16 18:51 tox.ini
-rw-r--r-- 1 alex alex 1140 May 12 2021 .travis.yml
drwxr-xr-x 2 alex alex 4096 May 5 2021 unit_tests
-rw-r--r-- 1 alex alex 92 May 12 2021 .zuul.yaml
Removing bad downloaded charm maybe?
Renaming charm here.
________________________________________________________________ summary ________________________________________________________________
  build: commands succeeded
  congratulations :)

$ ls -al *.charm
-rw-r--r-- 1 alex alex 15326143 Aug 26 11:43 ovn-chassis.charm

So what's different about your setup please?