Skip to content

Instantly share code, notes, and snippets.

#ErrorDocument 400 /error/400-bad_request.html
ErrorDocument 401 /error/401-authorization_required.html
#ErrorDocument 402 /error/402-payment_required.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-not_found.html
#ErrorDocument 405 /error/405-method_not_allowed.html
#ErrorDocument 406 /error/406-not_acceptable.html
#ErrorDocument 407 /error/407-proxy_authentication_required.html
ErrorDocument 408 /error/408-request_timed_out.html
#ErrorDocument 409 /error/409-conflicting_request.html
root@test-bishoy:~# git clone https://github.com/threefoldtech/js-sdk
root@test-bishoy:~# cd js-sdk/
root@test-bishoy:~/js-sdk# git branch
* development
root@test-bishoy:~/js-sdk# poetry update
pdating dependencies
Our infrastructure is composed from 4 servers, KVM Switch, PDU, a Cisco Catalyst switch, and Cisco ASA 5555-X with FirePOWER firewall that is expanded with 6-port Ethernet adapter for a total of 14 Ethernet ports. We migrated all services to one server to prepare for transforming our infrastructure to cloud system.
Need to use below:
1) CentOS
2) Kolla-Ansible OpenStack
3) ASA 5555-X with FirePOWER
4) Virtualization
root@bishoy_testnet:/sandbox# js_logs -a bottle_server tail
Mon 18 12:12:22 gedis.py - 15 - bottle : Incoming Request name: package_manager, cmd: packages_list, threebot_name: zerobot, package_name: admin
Mon 18 12:12:22 gedis.py - 15 - bottle : Incoming Request name: notifications, cmd: check_new_release, threebot_name: zerobot, package_name: admin
Mon 18 12:12:22 gedis.py - 15 - bottle : Incoming Request name: health, cmd: get_identity, threebot_name: zerobot, package_name: admin
Mon 18 12:12:22 gedis.py - 15 - bottle : Incoming Request name: identity, cmd: threebot_name, threebot_name: zerobot, package_name: webinterface
Mon 18 12:12:22 GedisClient.py - 87 - gedisclient_health_actor : reload
Mon 18 12:12:22 GedisClient.py - 173 - gedisclient_health_actor : redisclient: 127.0.0.1:8901
Mon 18 12:12:22 handlers.py
e_name: tfgrid_solutions
Mon 18 10:39:51 gedis.py - 15 - bottle : Incoming Request name: package_manager, cmd: packages_get_status, threebot_name: zerobot, package_name: admin
Mon 18 10:39:52 gedis.py - 15 - bottle : Incoming Request name: package_manager, cmd: package_add, threebot_name: zerobot, package_name: admin
2020-05-18 10:39:53 [INFO] (mdbook::book): Book building has started
2020-05-18 10:39:53 [INFO] (mdbook::book): Running the html backend
Mon 18 10:39:53 gedis.py - 15 - bottle : Traceback (most recent call last):
File "/sandbox/lib/jumpscale/Jumpscale/tools/codeloader/CodeLoader.py", line 81, in load
m = imp.load_source(name=md5, pathname=path)
File "/usr/lib/python3.7/imp.py", line 171, in load_source
module = _load(spec)
https://support.grid.tf {
proxy / 10.102.26.154:8002 {
transparent
}
}
http://support.grid.tf {
redir https://support.grid.tf{uri}
}
JSX> j.data.bcdb.children
# dict BCDBS:
- system : bcdb:system
JSX> schema = """
2 @url = test.text.1
3 text = "" (S)
JSX> cl = j.clients.gedis.get(name='default',host='127.0.0.1', port=8901, package_name="zerobot.packagemanager")
LOAD CONFIG BCDB
Wed 18 10:35:16 /schema/JSXObject.py - 139 - check_empty_indexed_fields : EXCEPTION:
an indexed (sql) field cannot be empty:tname
--TRACEBACK------------------
<stdin> in <module>
1
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in get
In [3]: ncl = j.clients.zos.get('dog', data = { 'host':'10.102.175.42', 'password_':jwt},)
In [4]: ncl.capacity.register()
--------------- ---------------------
In [4]: f = ncl.containers.get('zrobot')
In [5]: job = f.client.subscribe('zrobot')
In [6]: job.stream()
@Pishoy
Pishoy / andrew
Last active November 27, 2019 14:16
JSX> zdb_admin = j.clients.zdb.admin
JSX> zdb_admin
# JSXOBJ:
## .zdb.client.1
ID: 105
- name : admin
- addr : 127.0.0.1
- port : 9,900
- secret_ : e10adc3949ba59abbe56e057f20f883e
- nsname : default