Switch to DuckDuckGo Search
   February 1, 2020  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | >

Toggle Join/Part | bottom
[00:39:47] <arekinath> I have the VNC bits in the branch where I have "triton inst exec" (eait-itig/sdc-cloudapi#eait and eait-itig/node-triton#eait)
[00:39:53] <arekinath> no serial though yet
[00:40:46] *** gh34 <gh34!~textual@cpe-184-58-181-106.wi.res.rr.com> has quit IRC (Quit: Textual IRC Client: www.textualapp.com)
[00:41:03] <arekinath> inst exec is websockets too and supports interactive commands, but that's zones only. you probably want to model a serial ws endpoint on how they work though
[00:43:37] <arekinath> pretty nice way to get into zones that are only on fabrics though
[00:46:32] <arekinath> especially for LX since you can give access to it after zone creation by adding people to an RBAC role (and xacct works with it fine too)
[00:47:04] <arekinath> though our installation also has the patch to add keys for members of the "admin" role to new zones automatically during creation
[00:50:30] <arekinath> anyway if you want images of those they're in our manta, too, I can share if you like (built them on a recent platform though so your headnode will need to be up to date)
[00:56:59] <Smithx10> arekinath: thanks for the heads up. Hopefully that work gets merged soon and then we can move forward with the serial stuff.
[00:57:06] <Smithx10> I saw those PRs open
[00:57:46] <arekinath> I don't think I have a PR open for inst exec
[00:58:12] <Smithx10> https://github.com/joyent/sdc-cloudapi/pull/36
[00:58:19] <Smithx10> maybe it was auto brought over
[00:59:29] <arekinath> oh, yeah that was auto-migrated from Gerrit, and it's an old buggy version of the patch
[00:59:36] <arekinath> from when I was prototyping it
[01:00:23] <Smithx10> I'm kind of thinking about what the user experience around HVMs should be
[01:01:11] <Smithx10> maybe just access to the serial console is enough, but with smartlogin, I'd imagine you could exec into the HVM as long as it was nix*
[01:01:20] *** psydroid <psydroid!psydroidma@gateway/shell/matrix.org/x-fcnfredfwgeiglvi> has left #smartos ("User left")
[01:01:46] <Smithx10> well even now adays windows has SSH, so maybe SSH_Enabled HVMs .... or do you keep the serial console logged in?
[01:10:18] <arekinath> we could add a daemon in the images which sits and listens on an AF_VSOCK port maybe
[01:10:27] <arekinath> still want to add that to bhyve
[01:11:02] <Smithx10> that daemon could also psuh logs through also
[01:12:37] <arekinath> other platforms run 9p over vsock too
[01:13:15] *** blackwood821 <blackwood821!~blackwood@2601:484:8002:2fa0:f4ab:4e29:2e2:cf6b> has quit IRC (Remote host closed the connection)
[01:36:14] *** andy_js <andy_js!~andy@90.215.171.48> has quit IRC (Quit: andy_js)
[01:41:23] *** jamtorus <jamtorus!~quassel@s91904427.blix.com> has joined #smartos
[01:41:58] *** jellydonut <jellydonut!~quassel@s91904426.blix.com> has quit IRC (Ping timeout: 268 seconds)
[01:50:59] *** jellydonut <jellydonut!~quassel@s91904424.blix.com> has joined #smartos
[01:53:52] *** jamtorus <jamtorus!~quassel@s91904427.blix.com> has quit IRC (Ping timeout: 268 seconds)
[02:16:39] <jbk> we do do PRs now :P
[02:16:49] <jbk> err scrolled up
[02:16:50] <jbk> heh
[02:16:52] <jbk> or was
[02:18:45] <jbk> arekinath: if you don't either me or zeller will probably get to it at some point
[02:23:05] <jbk> .sc
[02:54:42] <Smithx10> Any sql people around.... I have a table and I want to add a column that auto updates itself based on certain conditions in the same row. something like Active = True when time.Now < ExpiresAT && disabledAt != null kinda thing
[02:54:56] <Smithx10> Whats this called / where can I read this (im a complete sql n00b)
[02:57:08] <jbk> probably two ways
[02:57:21] <jbk> one is you could probably set a default value on the column
[02:57:34] <jbk> if you want the value to change as updates happen, you want a trigger
[03:10:52] <Smithx10> jbk: would this be better off in middleware?
[03:11:05] <Smithx10> that logic instead of checking the DB for Active = true / false?
[03:45:37] <jbk> well it depends
[03:45:43] <jbk> (sorry was fixing/eating dinner)
[03:46:19] <jbk> I like to have the database enforce any consistency rules as a check of last resort
[03:47:01] <jbk> so depending on what the purpose of the column is
[03:47:32] <jbk> I think (though it might depend a bit on the database) you could also just 'generate' (for lack of a better term) the column in the query
[03:48:57] <Smithx10> This is going to see when an account is active vs deactive
[03:49:17] <Smithx10> i was going to have expiresAt and an expiredAt.
[03:49:48] <Smithx10> Curiously thinking about how I can maintain when those things changed and when in postgres
[03:51:41] <jbk> you could do something like SELECT ..., expiresAt, disabledAt, CASE WHEN now < expiresAt and disabledAt != NULL THEN 'false' else 'true' END as disabled from ...
[03:51:51] <jbk> the syntax probably isn't 100% correct
[03:52:14] <jbk> (not sure if you can do 'CASE .... END as xxx' -- the 'as xxx' might not work..
[03:52:29] <Smithx10> so you'd use case i guess to do this kinda thing
[03:53:12] <jbk> postgres does have generated columns too (apparently)..
[03:53:26] <jbk> not sure which versions support it
[03:53:38] <Smithx10> im on like 11 or something
[03:53:53] <Smithx10> ahhhhh
[03:53:58] <Smithx10> hahaah might be a reason to move to 12 ;P
[03:54:29] <jbk> yeah looks like it's only in 12
[04:05:06] *** noahmehl <noahmehl!~noahmehl@mobile-166-176-58-167.mycingular.net> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[04:10:49] *** noahmehl <noahmehl!~noahmehl@mobile-166-176-58-167.mycingular.net> has joined #smartos
[04:39:17] <jbk> speaking of vnc earlier..
[04:39:40] <jbk> i might had some changes to enable 'vnc_password' w/ bhyve
[04:40:14] <jbk> i just need to get a box to test it on.. i'd be impressed if it worked the first time :)
[05:40:38] *** JtH <JtH!~5CE0A708@unaffiliated/cmdlnkid> has joined #smartos
[06:29:02] *** tru_tru <tru_tru!~tru@157.99.90.140> has quit IRC (Ping timeout: 265 seconds)
[08:36:56] *** alciregi <alciregi!~alcir@fedora/alciregi> has quit IRC (Quit: ZNC - https://znc.in)
[08:50:26] *** lgtaube <lgtaube!~lgt@84.16.224.13> has quit IRC (Ping timeout: 240 seconds)
[09:37:24] *** miller7 <miller7!~pidgin@unaffiliated/miller7> has quit IRC (Quit: Leaving.)
[09:37:39] *** alciregi <alciregi!~alcir@fedora/alciregi> has joined #smartos
[09:41:01] *** miller7 <miller7!~pidgin@unaffiliated/miller7> has joined #smartos
[09:48:34] *** miller7 <miller7!~pidgin@unaffiliated/miller7> has quit IRC (Quit: Leaving.)
[10:52:34] *** andy_js <andy_js!~andy@90.215.171.48> has joined #smartos
[11:08:52] *** mgerdts <mgerdts!~textual@96-41-228-208.dhcp.ftbg.wi.charter.com> has quit IRC (Ping timeout: 268 seconds)
[11:16:36] *** LiftedKilt <LiftedKilt!kilty@unaffiliated/liftedkilt> has quit IRC (Quit: Kilted Southern)
[11:19:28] *** LiftedKilt <LiftedKilt!kilty@unaffiliated/liftedkilt> has joined #smartos
[11:32:23] <sjorge> Woodstock https://www.supermicro.com/en/products/motherboard/X11SPH-nCTF so it's a Intel® X722 + X557
[12:51:17] *** ldepandis <ldepandis!~ldepandis@unaffiliated/ldepandis> has joined #smartos
[13:03:17] *** elegast <elegast!~elegast@83-161-180-214.mobile.xs4all.nl> has joined #smartos
[13:04:19] *** kayront <kayront!~kayront@unaffiliated/kayront> has joined #smartos
[14:26:34] *** rennj <rennj!~rennj@wsip-24-120-111-138.lv.lv.cox.net> has quit IRC (Ping timeout: 265 seconds)
[14:28:40] *** rennj <rennj!~rennj@wsip-24-120-111-138.lv.lv.cox.net> has joined #smartos
[14:31:06] <elegast> Hi guys, I recall there being a github repro that contained node tools to mount/modify/unmount smartos platform images from within a non-global zone but I can't seem to find it.
[14:31:12] <elegast> Does this ring a bell to anyone?
[14:45:28] <sjorge> You mean the script to update the PI on the usb key?
[15:00:48] <Smithx10> kkantor: how is manatee and pg12 wokring?
[15:03:45] <Smithx10> jbk: I'm surprised that generated columns wasnt a thing until 12....
[15:24:48] *** panzeroceania <panzeroceania!sid16210@gateway/web/irccloud.com/x-gyptvnhxcyjyfbho> has quit IRC ()
[15:25:52] *** panzeroceania <panzeroceania!sid16210@gateway/web/irccloud.com/x-uchbemroxhkzgxlv> has joined #smartos
[15:38:11] <elegast> sjorge: no, if you're referring to the one that performs an inplace update of the PI, that's not the one. It was a nodejs collection to (optionally) open up an iso, mount the boot_archive, add some files, update the manifest, then reconstruct and unmount, entirely in userspace.
[15:38:55] <elegast> I think you meant this one: https://github.com/calmh/smartos-platform-upgrade?
[15:43:36] <elegast> the main use I would have for it, is that it's crossplatform, it seemed mostly complete, and didn't require priviliged illumus tools
[15:49:18] <sjorge> oh never seen that one
[15:49:24] <sjorge> hopefully somebody knows
[15:56:33] *** rennj <rennj!~rennj@wsip-24-120-111-138.lv.lv.cox.net> has quit IRC (Ping timeout: 260 seconds)
[16:02:42] *** rennj <rennj!~rennj@wsip-24-120-111-138.lv.lv.cox.net> has joined #smartos
[16:17:48] *** jcea <jcea!~Thunderbi@2001:bc8:2ecd:caed:7670:6e00:7670:6e00> has joined #smartos
[16:22:23] *** mixfix41 <mixfix41!~homefame@unaffiliated/mixfix41> has quit IRC (Remote host closed the connection)
[16:48:26] *** arnoldoree <arnoldoree!~arnoldore@ranoldoree.plus.com> has joined #smartos
[17:03:32] *** JtH <JtH!~5CE0A708@unaffiliated/cmdlnkid> has quit IRC ()
[17:13:00] <Smithx10> We took down the triton cloud, and it seems liek sdc-server list in one of the AZs didnt report the correct status for the CNs when we bootedf back up
[17:20:32] *** ComplYue <ComplYue!~cyue@221.236.59.34> has joined #smartos
[17:20:36] *** rann <rann!sid175221@gateway/web/irccloud.com/x-epbssgfrlczamkmj> has quit IRC ()
[17:21:17] *** rann <rann!sid175221@gateway/web/irccloud.com/x-ekunrnzjnvseimzd> has joined #smartos
[17:22:29] <ComplYue> hello, I'd like to ask if I can share a fs between the GZ and a normal zone? using zonecfg to `add fs`, the fs must have mountpoint set to legacy, thus not accessible from global zone?
[17:44:12] *** nocsi <nocsi!sid217134@gateway/web/irccloud.com/x-rlfqokeupagpjnwk> has quit IRC ()
[17:44:29] *** nocsi <nocsi!sid217134@gateway/web/irccloud.com/x-bpmltasngkybdaxv> has joined #smartos
[17:47:03] <jbk> no
[17:47:07] <jbk> you want an lofs mount
[17:48:18] <jbk> IIRC, the 'special' attribute should be the path in the GZ, and 'dir' is hte path in the zone (type is 'lofs')
[18:00:52] *** MerlinDMC <MerlinDMC!~merlin@163.172.186.44> has quit IRC (Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in)
[18:01:35] *** MerlinDMC <MerlinDMC!~merlin@163.172.186.44> has joined #smartos
[18:07:13] <Smithx10> HmMm
[18:19:07] *** alciregi <alciregi!~alcir@fedora/alciregi> has quit IRC (Quit: ZNC - https://znc.in)
[18:28:37] <jbk> you sound skeptical :P
[18:29:02] <Smithx10> nah
[18:29:05] <Smithx10> was another issue
[18:29:18] <Smithx10> I made a bunch of persistent /32 routes in the UFDS instance
[18:29:42] <Smithx10> and after our server rack move today when everything came up UFDS couldnt ping the gateway
[18:29:50] <Smithx10> seems i fat fingered one of the routes "_"
[18:29:54] <Smithx10> Deleted it :P
[18:30:03] <jbk> that would do it
[18:30:11] *** alciregi <alciregi!~alcir@fedora/alciregi> has joined #smartos
[18:30:53] <Smithx10> but cnapi reporting servers running even though they werent booted was a bit puzzling
[18:31:03] <Smithx10> should bounce cnapi or fush something?
[18:31:27] <jbk> not sure on that one.. i think there's some heartbeat that goes back..
[18:31:49] <jbk> ISTR that the interval had to be increased because too frequently was just killing things on very large installs
[18:32:38] <jbk> or something like that
[18:41:56] *** MerlinDMC <MerlinDMC!~merlin@163.172.186.44> has quit IRC (Quit: ZNC 1.7.5+deb2 - https://znc.in)
[18:43:54] *** MerlinDMC <MerlinDMC!~merlin@163.172.186.44> has joined #smartos
[18:53:59] *** noahmehl <noahmehl!~noahmehl@mobile-166-176-58-167.mycingular.net> has quit IRC (Quit: Textual IRC Client: www.textualapp.com)
[18:55:52] <ComplYue> @jbk thanks, I get lofs working for me :)
[18:58:16] <ComplYue> and another question, does pkgsrc provides a utility that lookup a package by command? My installed gcc7 both in GZ and a normal zone, GZ lacks /usr/loca/bin/as I want to know if I missed other packages
[18:58:49] <bahamat> ComplYue: Install build-essential
[19:00:39] <ComplYue> I meant to install build-essential in GZ, but can't succeed due to cyrus failing to create a user in GZ
[19:00:47] <bahamat> As for searching, I usually do `pkgin avail | grep ...` because `pkgin search` takes too long for most things I'm looking for.
[19:01:07] <bahamat> ComplYue: Are you using the pkgsrc-tools set?
[19:02:06] <ComplYue> I'm using both, after installed tools, then found it doesn't provide build-essential, I installed pkgsrc to GZ
[19:02:32] <bahamat> What are you trying to build?
[19:03:42] <ComplYue> I'm trying to build GHC 8, in a zone the bootstrap ghc crashed without much useful info, I suspect maybe the zone is limiting sth to prevent it
[19:04:05] <ComplYue> as GHC 8 is observed to claim 1TB virtual size usually
[19:05:08] <bahamat> Then I would suggest making a zone with the same size memory as the physical server has.
[19:05:13] <ComplYue> I installed ghc7.6.3 from pkgsrc, bootstraped ghc7.10.3 successfuly in a zone, but stuck at bootstrapping ghc8.2.2, my final goal is to have ghc 8.6 or 8.8 running
[19:05:34] <bahamat> non-tools pkgsrc isn't really supported in the global zone for the exact reasons you're running into.
[19:07:29] <ComplYue> I'm doing this on my laptop with 16GB ram, given the smartos kvm 8GB, and the zone is created with max-physical-memory of 8GB, I'd think it should be large enough
[19:08:13] <bahamat> So then if you're running into memory issues, it's not because the zone is not large enough.
[19:08:51] <ComplYue> but zonememstat shows the GZ have capped-memory at 16TB, with the zone at 8GB, so I feel worth a try from the GZ
[19:09:51] <bahamat> That's just the maximum addressable memory.
[19:10:05] <bahamat> illumos is not like linux where it never fails memory allocation.
[19:10:21] <bahamat> On illumos if there's not enough memory for an allocation it fails, period.
[19:10:22] <Smithx10> jbk: looks like it might have been CNAPI-661
[19:10:23] <jinni> Sorry, CNAPI-661 is not public.
[19:10:41] <ComplYue> I'm actually some confused by several ram related parameters from the output of zonecfg info, can there be one limiting virtual size?
[19:11:59] <bahamat> Well, they do different things.
[19:12:26] <bahamat> You can set them all to 16TB if you want to, or use zonecfg to remove the caps entirely.
[19:13:05] <bahamat> You're still limited by the amount of memory available to the OS.
[19:13:15] <ComplYue> so I should stop try building from GZ right?
[19:13:37] <bahamat> I would.
[19:14:45] <ComplYue> got it, thanks! let me try tweak zonecfg and see what comes
[19:20:38] *** arnold_oree <arnold_oree!~arnoldore@ranoldoree.plus.com> has joined #smartos
[19:28:12] *** ComplYue <ComplYue!~cyue@221.236.59.34> has quit IRC (Quit: Leaving.)
[19:29:09] *** jellydonut <jellydonut!~quassel@s91904424.blix.com> has quit IRC (Read error: Connection reset by peer)
[19:29:24] *** MerlinDMC <MerlinDMC!~merlin@163.172.186.44> has quit IRC (Quit: ZNC 1.7.5+deb2 - https://znc.in)
[19:30:39] *** jellydonut <jellydonut!~quassel@s91904424.blix.com> has joined #smartos
[19:32:34] *** jellydonut <jellydonut!~quassel@s91904424.blix.com> has quit IRC (Client Quit)
[19:35:38] *** jellydonut <jellydonut!~quassel@s91904428.blix.com> has joined #smartos
[19:38:51] *** arnoldoree <arnoldoree!~arnoldore@ranoldoree.plus.com> has quit IRC (Quit: Leaving)
[19:54:54] *** MerlinDMC <MerlinDMC!~merlin@163.172.186.44> has joined #smartos
[20:05:22] *** elegast <elegast!~elegast@83-161-180-214.mobile.xs4all.nl> has quit IRC (Ping timeout: 268 seconds)
[20:41:49] *** pmooney <pmooney!~pmooney@67-4-175-230.mpls.qwest.net> has quit IRC (Quit: WeeChat 2.7)
[22:18:02] *** hhdave <hhdave!~anonymous@ip212.ip-193-70-71.eu> has joined #smartos
[22:33:34] *** hhdave <hhdave!~anonymous@ip212.ip-193-70-71.eu> has quit IRC (Quit: hhdave)
[22:54:56] *** pmooney <pmooney!~pmooney@67-4-175-230.mpls.qwest.net> has joined #smartos
[23:05:32] *** jvl <jvl!~jvl@mei.hadret.com> has quit IRC (Quit: ZNC - http://znc.in)
[23:05:32] *** hadret <hadret!~hadret@mei.hadret.com> has quit IRC (Quit: ZNC - http://znc.in)
[23:07:03] *** jvl <jvl!~jvl@mei.hadret.com> has joined #smartos
[23:39:26] *** noahmehl <noahmehl!~noahmehl@mobile-166-176-58-167.mycingular.net> has joined #smartos
[23:59:02] *** arnold_oree <arnold_oree!~arnoldore@ranoldoree.plus.com> has quit IRC (Quit: Leaving)
top

   February 1, 2020  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | >