slapos.core:3922cb529382dc85a1b8b66730b2d6a19cb07667 commitshttps://lab.nexedi.com/nexedi/slapos.core/-/commits/3922cb529382dc85a1b8b66730b2d6a19cb076672020-01-16T16:48:41+01:00https://lab.nexedi.com/nexedi/slapos.core/-/commit/3922cb529382dc85a1b8b66730b2d6a19cb07667slapos_web_deploy: support Ubuntu 19.102020-01-16T16:48:41+01:00Thomas Gambierthomas.gambier@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/d3b935fc3ac2c43b8e52a5cc612c1207170361c3Since ec876a72 new data was inserted, reflect changes in compared files.2020-01-16T07:55:35+01:00Ivan Tyagovivan@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/220760babf6f46d98de082b76835553e31a4c06bSince ec876a7213380c6875145e292bd8db7dfe336912 new data was inserted, reflect...2020-01-16T07:55:35+01:00Ivan Tyagovivan@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/8a18a874722058fef2326929f384af4335631cc3slapos_crm: Update tests to consider tolerance of 30 min to create the a ticket2020-01-16T04:27:12+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f1d9c0ca7d6bd4d7f6f0a5181cf7ffc4576a3405slapos_wechat: Fixup Tests.2020-01-16T04:27:12+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/5eeadcf7ff96ebd2e875ce25abd286eb8f9a36e8slapos_wechat: Cancel the Payment if the invoice is open for more them 24 hours2020-01-16T04:27:12+01:00Rafael Monneratrafael@nexedi.com
This means the user gave up, so we cancel so the new payment is created or Subscription Request is cancelled.https://lab.nexedi.com/nexedi/slapos.core/-/commit/013c7ff743ab2870400533eee739a703cad93d78Extend tests to detect shared libraries using system libraries2020-01-16T03:40:43+01:00Jérome Perrinjerome@nexedi.com
On some test machines, we saw test failures because openssl version mismatch:
```
Traceback (most recent call last):
File "/srv/slapgrid/slappart14/srv/testnode/cqg/soft/18d28ecd49e5e0f732e2ce0c00c57519/parts/slapos.core-repository/slapos/testing/testcase.py", line 227, in installSoftwareUrlList
checkSoftware(cls.slap, software_url)
File "/srv/slapgrid/slappart14/srv/testnode/cqg/soft/18d28ecd49e5e0f732e2ce0c00c57519/parts/slapos.core-repository/slapos/testing/testcase.py", line 211, in checkSoftware
raise RuntimeError('\n'.join(error_list))
RuntimeError: ./parts/proftpd/libexec/mod_auth_web.so:
./parts/proftpd/libexec/mod_auth_web.so: /usr/lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /srv/slapgrid/slappart14/srv/testnode/cqg/inst/test0-0/tmp/shared/curl/724c785f86fff6993ff24ef745d4dbb9/lib/libcurl.so.4)
```
What we see in this traceback is that the version of openssl used was the one from system ( in `/usr/lib/` ), which should not happen because we are using setting rpath to slapos libraries. We had a test checking for missing rpath that could not resolved, but our test did not catch missing rpath that can be resolved on a system library, which is also wrong because this system library might be a different version like here or even be missing.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/172" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/172" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3529" data-project-path="nexedi/slapos.core" data-iid="172" data-mr-title="Extend tests to detect shared libraries using system libraries" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!172</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/9b6b637d78b4ddfcd70e6dcf3f75d810a0027762Release 1.5.72020-01-15T12:33:47+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/4656f0632c1d9c49c52f206a6d595cd20a9707ectesting/testcase: check executables are not linked with system libraries2020-01-15T10:36:38+01:00Jérome Perrinjerome@nexedi.com
Except a short whitelist of system libraries, we should have always set
rpath so that the slapos version of the library is used.
We had issues with components which where compiled with slapos version
of openssl but linked without rpath. At runtime they were using system
openssl.
Rewrite our complex grep shell pipeline in python, with a function
parsing ldd output so that we can check not only for not found dynamic
libraries, but also for libraries that are found outside of slapos
library dirs.
This also fixes problems that this grep pipeline did not support paths
with spaces in their names.https://lab.nexedi.com/nexedi/slapos.core/-/commit/4990aeaf9469323096f9de18ebfe3a69984d40aaproxy: Update timestamp partition on slave changes2020-01-15T09:20:22+01:00Łukasz Nowakluke@nexedi.com
Each time slave partition changes (it is added or updated) the master
partition timestamp has to be recalculated.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/176" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/176" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3569" data-project-path="nexedi/slapos.core" data-iid="176" data-mr-title="proxy: Update timestamp partition on slave changes" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!176</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/2138e2cee035049a87a7c2b235305494102ec1d6testing/testcase: cleanups2020-01-15T01:16:01+01:00Jérome Perrinjerome@nexedi.com
Fix long lines, incorrect type annotations and adjust a bit to make mypy
happy.https://lab.nexedi.com/nexedi/slapos.core/-/commit/fea3bd23104889ecf2f27018a3d6b83f8837ace0testing/testcase: include partition dump when setup class fail2020-01-15T00:34:35+01:00Jérome Perrinjerome@nexedi.com
Sometimes instanciation fail because some service do not start and the
"check port listening" promises fail. In this case, it's very important
to also have the partition content to see what's in the log files.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/175" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/175" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3566" data-project-path="nexedi/slapos.core" data-iid="175" data-mr-title="testing/testcase: include partition dump when setup class fail" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!175</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/02c77c811feb711ec72f195e3dfa88924c564199testing/testcase: do not check binaries fetched by npm2020-01-14T15:33:20+00:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/4a295cbaa3031253ccc222bbcf35df820538d917slapos_crm: Display age of the message at the report2020-01-14T05:00:30+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f6df7e608ff715591f361d83a4f7f42a8f52c423slapos_crm: Fix selection_list on catalog call2020-01-14T05:00:29+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/58419b684584c87824c0887d475faccfe8d8ae91slapos_crm: Define 30 days tolerance before create a ticket for the hosting s...2020-01-14T05:00:26+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/fcec90a244ea6c664d491fcfae53e71f7681a96eslapos_crm: Also check ComputerState for Subscription related Computers2020-01-14T05:00:25+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/79ad93cd7580ea8e2aac8da4a5eae6e6496e2b8eslapos_jio: show all parameters in one page in software_instance_view2020-01-13T19:03:28+01:00Thomas Gambierthomas.gambier@nexedi.com
the pagination doesn't work because
SoftwareInstance_getConnectionParameterList returns always all
parameters.https://lab.nexedi.com/nexedi/slapos.core/-/commit/14bf765268c6c41e2cc0a5b5262a7b176208ce9aRelease 1.5.62020-01-09T11:31:41+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/cff209d06908f65ee82e3cd63c38fef6ac9cef4bpromise: Cleanup stale monitoring files of removed promises2020-01-09T11:25:26+01:00Łukasz Nowakluke@nexedi.com
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/174" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/174" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3546" data-project-path="nexedi/slapos.core" data-iid="174" data-mr-title="Feature/promise cleanup" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!174</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/63b17738d07508e30fa3262d6b9155b253e66d50slapgrid: binary cache only option2020-01-08T09:59:55+01:00Łukasz Nowakluke@nexedi.com
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/173" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/173" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3542" data-project-path="nexedi/slapos.core" data-iid="173" data-mr-title="slapgrid: binary cache only option" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!173</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/78f01daf8b5a54b346e248c8b2eca4487c5caf21slapos_slap_tool: Add test to call API Twice2020-01-08T06:50:48+01:00Rafael Monneratrafael@nexedi.com
'since' should be unmutable.https://lab.nexedi.com/nexedi/slapos.core/-/commit/9e1ec652848aa998dc88adb862873adf2739a0d6slapos_crm: Ensure you are comparing integers when get value from preference2020-01-08T06:15:37+01:00Rafael Monneratrafael@nexedi.com
Also define a short cache, to prevent creation explosionhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f904129e2b654cf2b94f4c428ee4f71f9c9c2517SlapTool: Store since when the logged information is there.2020-01-08T06:13:40+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/390480e46d578bb22bf35fe698ef6b6845e8b83aSlapTool: Use script rather them a local method2020-01-08T06:13:39+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/9024402b2d7ac8bf8818ec266fd5636c0aabdcb6slapos_crm: Extent SoftwareInstance_hasReportedError to make it more flexible2020-01-08T06:13:39+01:00Rafael Monneratrafael@nexedi.com
Allow it report the message and creation date, which can be usable on other contexts.https://lab.nexedi.com/nexedi/slapos.core/-/commit/81c4585a9c87514b5b09623e98ef037e36b4dff5slapos_crm: More accurate checks when recheck the Support Reuest Monitoring S...2020-01-08T06:13:39+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/9bd2ad5a9b64c7b44cfa104eae3c7d37e3324ffdslapos_jio: fix AccountingTransaction_getPaymentStateAsHateoas after...2020-01-07T14:38:32+01:00Thomas Gambierthomas.gambier@nexedi.comslapos_jio: fix AccountingTransaction_getPaymentStateAsHateoas after <a href="/nexedi/slapos.core/-/commit/f512ad84c587702066c6a981885f039b16c31875" data-original="f512ad84c587702066c6a981885f039b16c31875" data-link="false" data-link-reference="false" data-project="77" data-commit="f512ad84c587702066c6a981885f039b16c31875" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="slapos_payzen; Scripts moved to slapos_account in order to make it compatible..." class="gfm gfm-commit has-tooltip">f512ad84</a>
https://lab.nexedi.com/nexedi/slapos.core/-/commit/40501fcae95e29bdc8edc3e7a0a3e391de5523faBetter testcase snapshots2020-01-07T04:11:55+01:00Jérome Perrinjerome@nexedi.com
Implementing improvements discussed in <a href="https://lab.nexedi.com/nexedi/slapos/commit/1a5df533809238a82b09fc9aae56bc90e31672af#note_93275" data-original="https://lab.nexedi.com/nexedi/slapos/commit/1a5df533809238a82b09fc9aae56bc90e31672af#note_93275" data-link="false" data-link-reference="true" data-project="15" data-commit="1a5df533809238a82b09fc9aae56bc90e31672af" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="slaprunner: support shared parts" class="gfm gfm-commit has-tooltip">slapos@1a5df533 (comment 93275)</a> and on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/150#note_92471" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/150#note_92471" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3376" data-project-path="nexedi/slapos.core" data-iid="150" data-mr-title="testcase: Snapshot on setUpClass failure" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!150 (comment 92471)</a>
We now only store slapos logs one per `setUpModule` for software and `setupClass` for instances.
There's no de-duplication, but it's still a bit big.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/156" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/156" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3412" data-project-path="nexedi/slapos.core" data-iid="156" data-mr-title="Better testcase snapshots" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!156</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/7923d872cad675ed3eab2cc8bcbdcd7c1df57c57slapos_jio_ui_test: Ensure the test is reindexed.2020-01-03T16:05:10+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f89a7d75ccca44d3f6072d67f02af5374cce6561slapos_subscription_request: Implement notification when Instance is ready sc...2020-01-03T02:26:15+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/b9a856389ec9860c6bc638e71b09ac76d8e464bcslapos_subscription_request: Display more columns on Subscription Condition L...2020-01-02T22:30:59+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f479e62e9a768592bdffd97b008174829aeb60e6slapos_subscription_request: Extend subscription_request_workflow to handle n...2020-01-02T18:11:38+00:00Rafael Monneratrafael@nexedi.com
Include additional states to handle additional steps when handle a subscription requests.
started: Once Subscription is started, it means that instance is ready and user was notified
stopped: Once Subscription is stopped, it means that instance is destroyed but not all invoices were payed. Subscription is about to be Delivered (Closed).https://lab.nexedi.com/nexedi/slapos.core/-/commit/c0ab4e958513ebc555379dda5d203a637a3d18d4slapos_jio: Remove unfinished chinese translation2019-12-30T22:29:48+00:00Rafael Monneratrafael@nexedi.com
This prevents things get broken.https://lab.nexedi.com/nexedi/slapos.core/-/commit/fc3284987a0ee88aeb6d63a38c1c7b31485763c1slapos_erp5: Fix user security for Software/Slave Instance/Installation on sh...2019-12-27T22:47:47+00:00Rafael Monneratrafael@nexedi.com
Once the Computer/Hosting Subscription is transferred using Internal Packing List, the associated installation and instance should acquire security from the respective context.https://lab.nexedi.com/nexedi/slapos.core/-/commit/1c509f97bd226ff815d82731d5ab72fe4e8f944aslapos_erp5: Update wechat event roles when edit the document.2019-12-27T15:48:25-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f721ab4406c9cdbd6155be3bce38cb25886f6883slapos_crm: Fix up test, alarm is only call for Support Request associated to...2019-12-27T15:48:24-02:00Rafael Monneratrafael@nexedi.comslapos_crm: Fix up test, alarm is only call for Support Request associated to a Hosting Subscription
https://lab.nexedi.com/nexedi/slapos.core/-/commit/7c493839205acb0b204565158975822c694143f6slapos_jio: Translate Payment Result page into Chinese.2019-12-27T15:48:24-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/7e808622568df515270327c08f010fb777a1d220slapos_crm: Do not suspend Support Requests2019-12-27T15:48:23-02:00Rafael Monneratrafael@nexedi.com
Tickets should be automatic suspended if they aren't supposed to be responded by the user.https://lab.nexedi.com/nexedi/slapos.core/-/commit/95eb074e87b0ab0427648fe0090ff6726a2c26ccslapos_wechat: Base_queryWechatOrderStatusByTradeNo uses shadow person2019-12-27T15:48:23-02:00Rafael Monneratrafael@nexedi.com
This API is used by anonymous so we convert the query for the rely on shadow person security