svmp / svmp-overseer Goto Github PK
View Code? Open in Web Editor NEWCentral controller, login, and API server
License: Other
Central controller, login, and API server
License: Other
yuan@yuan:~/work/svmp/svmp-overseer$ npm test
[email protected] test /home/yuan/work/svmp/svmp-overseer
grunt --config test/config.yaml
Running "mochaTest:src" (mochaTest) task
2018-08-01T09:38:42.957Z - info: Loading config file: test/config.yaml
2018-08-01T09:38:43.229Z - info: Mongoose: connected to: mongodb://localhost/svmp_overseer_test_db
express-session deprecated undefined resave option; provide resave option lib/console/express.js:63:13
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option lib/console/express.js:63:13
2018-08-01T09:38:43.478Z - info: SVMP REST API running on port 3000 with SSL
0 passing (2s)
1 failing
Warning: Task "mochaTest:src" failed. Used --force, continuing.
Done, but with warnings.
2016-12-08T10:58:35.246Z - verbose: Calling overseer: services/vm-session for user 'suhas'
2016-12-08T10:58:35.266Z - verbose: Calling overseer: services/cloud/setupVm/suhas
2016-12-08T10:58:35.286Z - verbose: Connecting to VM 192.168.1.52...
2016-12-08T10:58:38.284Z - error: Error communicating with VM1 192.168.1.52: connect EHOSTUNREACH 192.168.1.52:8001
2016-12-08T10:58:38.285Z - info: Disconnecting user 'suhas' (::ffff:192.168.1.25:49795) from VM 192.168.1.52
2016-12-08T10:58:38.285Z - info: User 'suhas' (::ffff:192.168.1.25:49795) disconnected
2016-12-08T10:58:38.286Z - verbose: Calling overseer: services/vm-session for user 'suhas'
2016-12-08T10:58:38.290Z - debug: Connection to VM 192.168.1.52 closed
2016-12-08T10:58:38.301Z - verbose: vmSession for user 'suhas' updated successfully
2016-12-08T10:58:38.477Z - debug: clientSocket closed: (1000)
So, now that I have the admin account in the system, I decided to sign up some new users. I create them, then logout, then go to the Pending Users screen as the admin. On that screen I click the green "Approve" buttons.
When I do this, I see Password should be at least 8 characters
for all users clicked on. The passwords for all these users are all 8 characters or more already though and follow the password conventions from signup.
Hi dkeppler,
when I run svmp-config devices I get this error "Error: self signed certificate" is that related to my CA_Certificate? the one that we created on my own...
No clue where to go from here! Could you please assist?
Thanks in advance!
Sirish K
Hi guys!
What do you think what we have to do to connect to virtual machine (or example on Amazon EC2) with floating (private) IP adress?
use_floating_ips: true
floating_ip_pool: "nova"
Am i right that those stuff didn't implement ?
As some background, I have svmp-overseer and svmp-server compiling and functional on an OpenStack sever. I also got svmp-web-console compiling, though I understand it is a deprecated version of svmp-overseer.
In svmp-web-console part of the setup was to create a default admin user and part of the screenshot you show is an admin account that can approve pending accounts. I tried grunt add-default-admin and grunt reports adding the user, but that user then cannot login to svmp-web-console.
Of course, I'm actually more interested in getting this same idea functioning on svmp-overseer. I didn't see any options for creating a similar admin account though and all user accounts show a pending account status. Perhaps this is just a matter of modifying a 'user' entry to an 'admin' entry in the mongodb somehow or is there an easier way? What are the account details needed to access mongodb if this is the best way to do so?
Eventually, I went through the code hacking admin access into every place I saw it referenced in the code, with the idea that after I gave myself admin access, I could approve the pending users and then remove that code. This did allow me to access the Pending Users screen, but no pending users are listed, even though I have plenty of pending user accounts that I created. If you have any tips on completing hacking the code in this way to grant myself some admin access, that would also do.
Thanks in advance for any help you can provide!
Hello, thanks for providing this application, any help will be appreciated.
When trying to use the svmp-config for the first time , the overseer crashes:
]# svmp-config list
Using overseer URL: https://xxx.xxx.xx:3000
Proxy users:
Error code: 500, text: Internal Server Error
# node server.js --config config/config-local.yaml
2018-06-26T12:45:07.235Z - info: Loading config file: config/config-local.yaml
2018-06-26T12:45:07.763Z - info: Mongoose: connected to: mongodb://localhost/svmp_overseer_production_db
express-session deprecated undefined resave option; provide resave option lib/console/express.js:63:13
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option lib/console/express.js:63:13
2018-06-26T12:45:08.387Z - info: SVMP REST API running on port 3000 with SSL
TypeError: Cannot read property 'sub' of undefined
at /software/svmp-overseer/lib/authentication.js:75:38
at Object.module.exports.verify (/software/svmp-overseer/node_modules/jsonwebtoken/index.js:39:12)
at Object.exports.checkAdminToken [as handle] (/software/svmp-overseer/lib/authentication.js:74:13)
at next_layer (/software/svmp-overseer/node_modules/express/lib/router/route.js:103:13)
at Route.dispatch (/software/svmp-overseer/node_modules/express/lib/router/route.js:107:5)
at /software/svmp-overseer/node_modules/express/lib/router/index.js:205:24
at Function.proto.process_params (/software/svmp-overseer/node_modules/express/lib/router/index.js:269:12)
at next (/software/svmp-overseer/node_modules/express/lib/router/index.js:199:19)
at next (/software/svmp-overseer/node_modules/express/lib/router/index.js:176:38)
at next (/software/svmp-overseer/node_modules/express/lib/router/index.js:176:38)
at Layer.handle (/software/svmp-overseer/app/routes/log.js:110:9)
at trim_prefix (/software/svmp-overseer/node_modules/express/lib/router/index.js:240:15)
at /software/svmp-overseer/node_modules/express/lib/router/index.js:208:9
at Function.proto.process_params (/software/svmp-overseer/node_modules/express/lib/router/index.js:269:12)
at next (/software/svmp-overseer/node_modules/express/lib/router/index.js:199:19)
at SendStream.error (/software/svmp-overseer/node_modules/express/node_modules/serve-static/index.js:86:37)
2018-06-26T12:45:37.546Z - info: 74.50.112.144 - - "GET /services/users" 500 "-"
I guess this is related to the authentication toket, but I haven't find where to configure the token in the overseer.
Thanks a lot.
Miguel
Encountering issue when running the SVMP-Overseer. I am following this guide https://svmp.github.io/server-install.html
/home/ubuntu/svmp-overseer/node_modules/winston-transport/legacy.js:18
throw new Error('Invalid transport, must be an object with a log method.');
^
Error: Invalid transport, must be an object with a log method.
at new LegacyTransportStream (/home/ubuntu/svmp-overseer/node_modules/winston-transport/legacy.js:18:11)
at DerivedLogger.add (/home/ubuntu/svmp-overseer/node_modules/winston/lib/winston/logger.js:345:11)
at Object.winston.(anonymous function).args [as add] (/home/ubuntu/svmp-overseer/node_modules/winston/lib/winston.js:110:68)
at Object.winston.beforeConfig (/home/ubuntu/svmp-overseer/lib/logger.js:29:13)
at Object.svmp.init (/home/ubuntu/svmp-overseer/lib/svmp.js:43:17)
at Object.<anonymous> (/home/ubuntu/svmp-overseer/server.js:31:6)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
root@admin:~# svmp-config list
Using overseer URL: http://localhost:3000
Proxy users:
Error: connect ECONNREFUSED 127.0.0.1:3000
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.