-
psarria_
hi guys, i hope you can help me with this, i'm using network overlays
-
psarria_
when my overlay network enters in degraded state, i'm unable to recover it by fixing the error that caused the degraded state
-
psarria_
i'm using "files" as search plugin and the error that causes the degraded state is typing any error in the json file
-
psarria_
afaik the only way to recover it is shuting down zones using that overlay, deleting the overlay and recreating it, do you know any way to repair the overlay without doing that ?
-
danmcd
psarria_: perhaps "svcadm restart varpd" in the global zone?
-
danmcd
Tell me, does SMF report varpd is down when you have a typo?
-
danmcd
`svcs -xv varpd` ?
-
psarria_
danmcd, i tried restart varpd withous success, the varpd service itself is never down, i see no core files for varpd neither
-
danmcd
Hmmm... Perhaps you need to flush out the overlay first?
-
danmcd
svcadm disable -t varpd
-
danmcd
dladm modify-overlay -f <overlay-device-in-gz>
-
danmcd
svcadm enable varpd
-
danmcd
It's varpd that loads from the file.
-
psarria_
it seems it cannot flush, i suppose the overlay is degraded
-
psarria_
[root@12lab ~]# dladm modify-overlay -f o123
-
psarria_
dladm: failed to flush target cache for overlay o123: operation failed
-
danmcd
When you say "degraded" do you mean w.r.t. fmadm(8)?
-
psarria_
when varpd is reenabled the problem persist and the overlay remains degraded
-
psarria_
[root@12lab ~]# dladm show-overlay -f
-
psarria_
LINK STATUS DETAILS
-
psarria_
o123 DEGRADED no varpd instance exists
-
danmcd
"No varpd" ?
-
psarria_
yes
-
danmcd
pgrep varpd says?
-
danmcd
And `svcs -xv varpd` ?
-
psarria_
[root@12lab ~]# pgrep varpd
-
psarria_
33522
-
psarria_
varpd is running however
-
psarria_
when overlay enters in degraded state, fmadm faulty show an event about it but the problem persist when i tried fmadm commands as repaired o replace
-
danmcd
Use gist/pastebin/whatever, but please utter `fmadm faulty` so I can see the fmadm view of the faulty overlay?
-
psarria_
ok, i must leave now but i get output of fmadm faulty in shortly
-
psarria_
danmcd, thanks a lot
-
jdt
does VNC work with bhyve zonesin Triton? I've never really used it and was trying to yesterday to debug a problem with my SSH key. I can seem to get a connection, but the display is always just a black screen.
-
bahamat
jdt: Yes, but you have to be using the efi firmware.
-
bahamat
jdt: Set bootrom=uefi on the vm and then stop/start it.
-
jdt
okay, I'll give that a go - thanks.
-
jdt
that did the trick. in retrospect, I'm not sure how useful it'll be (my problem yesterday was with my local SSH agent), but a good tool to have in the arsenal. thanks again.
-
bahamat
You can set it on the image after you import it.
-
jdt
sweet, g2k
-
bahamat
We've been debating whether we should add that to images by default, but it makes them incompatible with KVM if we do.
-
bahamat
So for now we've left it as a post-import task.
-
jdt
makes sense. backwards compat is hard to manage. anecdotally, I'm not using KVM anywhere any more. but I'm sure lots of folks are.
-
jdt
...and I think the BSD images are still tied to KVM, aren't they?
-
jdt
testing with FreeBSD was the last time I think I saw "K" in my instance list.
-
jesse_
bahamat, if you had not forced uefi-or-bios setting in vmadm, you could have had disk images with both uefi and mbr boots...
-
jesse_
(as in, you can't have an image that can be set to uefi or bios depending what you want after creating the image)
-
jesse_
unless it was fixed since I ran into it=)
-
bahamat
jesse_: Currently produced images support both mbr and efi.
-
jesse_
bahamat, sweet
-
bahamat
Which is why you can choose on a per-instance basis.
-
bahamat
By default it will be bios so that it's compatible with KVM.
-
jesse_
ah, true, you did say that above
-
jesse_
my thick head is too thick to ingest information this fast
-
bahamat
If you want uefi (which if you're using bhyve, you almost certainly do), then you can set it.
-
bahamat
But because the vm json comes from the end user, there's no way for us to even suggest or imply that you probably should, other than put it in the man page.
-
bahamat
Which it's already listed there.
-
jesse_
there used to be some setting that came from the image manifest that forced your hand, but that was apparently fixed
-
bahamat
You can set requirements on an image. And if you, as the operator want all of your instances to be bhyve with uefi, you can set that on the image after you import it.
-
bahamat
But we don't set that in our image server so that if you want to use it with kvm you still can.
-
bahamat
The other least bad option is two identical images that differ only in the uuid and the brand/bootrom requirement. And that's not a very efficient use of space.
-
jdt
bahamat: can that be set in the VM interface in Triton somewhere (like via metadata)? Or is it only adjustable on the node using vmadm?
-
bahamat
You can set it on the image after it's imported to imgapi, then all instances created with that image will use it automatically.
-
jdt
Like 'triton image update d89041d8 bootrom=uefi'?
-
jdt
no, not so much, I guess.
-
bahamat
ssh into the headnode, then do `sdc-imgadm update <uuid> requirements.bootrom=uefi requirements.brand=bhyve
-
jdt
thanks
-
aquamo4k
jdt: are you booting/debugging a *nix/*bsd that has serial console support? that worked for me by default : 'vmadm console <uuid>'
-
jdt
aquamo4k: nice, yeah that works too.
-
aquamo4k
cool, i find using vnc cumbersome so always try to configure or have a serial console :-) hard to cut and paste console output from a vnc screen scraper