make sampledata can't find machine-resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Low
|
Adam Collard |
Bug Description
When running `make sampledata` using maas master it fails with:
```
$ make sampledata
ln -sf ../.ve/
ln -sf ../.ve/
bin/database --preserve run -- bin/maas-region dbupgrade
Operations to perform:
Apply all migrations: auth, contenttypes, maasserver, metadataserver, piston3, sessions, sites
Running migrations:
No migrations to apply.
bin/database --preserve run -- bin/maas-region generate_
Traceback (most recent call last):
File "bin/maas-region", line 11, in <module>
load_
File "/home/
run_
File "/home/
management.
File "/usr/lib/
utility.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
output = self.handle(*args, **options)
File "/home/
sampledata.
File "/home/
populate_main()
File "/home/
return func_outside_
File "/home/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/home/
mac_addresses = get_mac_addresses()
File "/home/
ip_addr = get_ip_addr()
File "/home/
output = call_and_
File "/home/
process = Popen(command, *args, stdout=PIPE, stderr=PIPE, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/
make: *** [Makefile:273: sampledata] Error 1
```
It looks like I have a `/home/
Related branches
- Alberto Donato (community): Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 12 lines (+1/-1)1 file modifiedMakefile (+1/-1)
tags: | added: ui |
tags: | removed: ui |
Changed in maas: | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Adam Collard (adam-collard) |
Changed in maas: | |
milestone: | none → 2.10-beta1 |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
I seem to have got things mostly working by doing:
cd src/machine- resources/
sudo make install
Then doing `make sampledata` finishes successfully.
However, doing `make all` now fails with:
``` resources/ vendor/ github. com/jaypipes/ pcidb/parse_ test.go' : Permission denied resources/ vendor/ github. com/jaypipes/ pcidb/. gitignore' : Permission denied resources/ vendor/ github. com/jaypipes/ pcidb/context. go': Permission denied resources/ vendor/ github. com/jaypipes/ pcidb/discover. go': Permission denied resources/ vendor/ github. com/jaypipes/ pcidb/Gopkg. toml': Permission denied ubuntu/ maas/src/ machine- resources' resources- vendor] Error 2
...
rm: cannot remove 'src/machine-
rm: cannot remove 'src/machine-
rm: cannot remove 'src/machine-
rm: cannot remove 'src/machine-
rm: cannot remove 'src/machine-
make[1]: *** [Makefile:34: vendor] Error 1
make[1]: Leaving directory '/home/
make: *** [Makefile:155: machine-
```