cloudmesh / cloudmesh-pi-burn

Burns many SD cards so we can build a Raspberry PI cluster
Other
18 stars 12 forks source link

burn: ubuntu/rasbian: verify if temp command works after burning #40

Closed laszewsk closed 2 years ago

laszewsk commented 3 years ago

I have merged the ubuntu branch into main. This requires a quality control check of burning an (at minimum) 3 node cluster. YOu can follow the appropriate tutorial. If such a tutorial does not exist on piplanet.org in tutorials, please create. If you see issues, report and or correct

[ Y] Richard MacOS [Y ] Anthiny Linux [ Y] Rama Pi [ ] DK Pi

related to #28 and #30

aporlowski commented 3 years ago

burn gui works for Linux. I had to push a few fixes just now

cluster from the commandline also works cms burn cluster --hostname=red,red00[1-2] --ssid=NETGEAR19-5G -y --device=/dev/sdb

laszewsk commented 2 years ago

likely other modifications have been done. DK reports tutorials do not work, JP reports tutorial work

laszewsk commented 2 years ago

gregor was able to after he fixed the config file in .ssh to run temp on dks machine. THis it seems a documentation issue on how to create the right config file. DK does not post the errors properly just says its the same error as before, but which, he had different once

laszewsk commented 2 years ago

also dks issue is not yet related to ubuntu, but to rasbianos

laszewsk commented 2 years ago

reassigned to JP. just follow tutorial and if works, let us know so we can close this

jpfleischer commented 2 years ago

i am able to replicate this issue.

Sledgehammer@Sledgehammer MINGW64 ~
$ cms pi temp red,red0[1-3]
ERROR: not enough values to unpack (expected 2, got 0)
ERROR: not enough values to unpack (expected 2, got 0)
ERROR: not enough values to unpack (expected 2, got 0)
ERROR: not enough values to unpack (expected 2, got 0)
+--------+--------+-------+----------------------------+
| host   |    cpu |   gpu | date                       |
|--------+--------+-------+----------------------------|
| red    | 49.173 |  49.1 | 2022-05-11 13:15:47.525902 |
| red01  |  0     |   0   | 2022-05-11 13:15:49.123703 |
| red02  | 46.251 |  46.2 | 2022-05-11 13:15:48.622586 |
| red03  |  0     |   0   | 2022-05-11 13:15:50.259289 |
+--------+--------+-------+----------------------------+
# Timer: 3.9271s Load: 0.5881s pi temp red,red0[1-3]
(ENV3)
Sledgehammer@Sledgehammer MINGW64 ~
$ cat ~/.ssh/config

##### CLOUDMESH PROXY CONFIG #####

Host red
     HostName red.local
     User pi
     StrictHostKeyChecking no

Host red01
     HostName red01.local
     User pi
     PreferredAuthentications publickey
     StrictHostKeyChecking no

Host red02
     HostName red02.local
     User pi
     PreferredAuthentications publickey
     StrictHostKeyChecking no

Host red03
     HostName red03.local
     User pi
     PreferredAuthentications publickey
     StrictHostKeyChecking no

Host red04
     HostName red04.local
     User pi
     PreferredAuthentications publickey
     StrictHostKeyChecking no

##### CLOUDMESH PROXY CONFIG #####

##### CLOUDMESH PROXY CONFIG red #####

Host red
     HostName red
     User pi
     PreferredAuthentications publickey
     StrictHostKeyChecking no

Host red01
     HostName red01
     User pi
     PreferredAuthentications publickey
     StrictHostKeyChecking no
     ProxyJump red

Host red02
     HostName red02
     User pi
     PreferredAuthentications publickey
     StrictHostKeyChecking no
     ProxyJump red

Host red03
     HostName red03
     User pi
     PreferredAuthentications publickey
     StrictHostKeyChecking no
     ProxyJump red

##### CLOUDMESH PROXY CONFIG red #####
(ENV3)
Sledgehammer@Sledgehammer MINGW64 ~

the solution is to manually delete the ~/.ssh/config file and start fresh.

after doing so, running cms host config --local=no --proxy=red red0[1-3] worked and temp worked fully for me.

$ cms pi temp red,red0[1-3]
+--------+--------+-------+----------------------------+
| host   |    cpu |   gpu | date                       |
|--------+--------+-------+----------------------------|
| red    | 50.147 |  49.1 | 2022-05-11 13:16:54.553520 |
| red01  | 46.251 |  46.2 | 2022-05-11 13:16:55.372313 |
| red02  | 47.225 |  47.2 | 2022-05-11 13:16:54.623518 |
| red03  | 45.277 |  45.2 | 2022-05-11 13:16:55.572259 |
+--------+--------+-------+----------------------------+
# Timer: 4.6478s Load: 0.5820s pi temp red,red0[1-3]