Closed Hamza-Talibi closed 7 years ago
And when I create Backup Service I get those warnings:
Hello @Hamza-Talibi,
First, were you able to deploy the infrastructure with the oneclick process http://clouder.readthedocs.io/en/master/getting-started.html ? This shall take care of the backup service.
Also I need to have more information regarding the create error. Seems like we have an argument which shall not be there, but I don't know where is the problem exactly. Can you provide a screenshot of the button you tried to click ?
I can't deploy the infrastruscture. What should I do in Oneclick Deployment filds ( code and name), in order that deploy action works? Yes, you have reason, when I configure the services deployed by the oneclick, it take care of backup services in base. Now, when I click on create on save base I get this warning:
Ok... There is something really hitting my eye in your screenshot of the base form...
@lasley I believe some really important fields were removed when you refactored the base form, especially the domain and service_id fields... No wonder new users are lost without service_id field, can't believe I missed that during my review. I corrected. I also made an openerp.py symbolic link to keep Clouder installable in Odoo 9.
@Hamza-Talibi Please update your code, a field service_id shall appear in base form, allowing you to select your Odoo service. I assume you deployed the oneclick without trouble.
when I create a service in which application is (odoo9 for example), the field image disappear, and I get this warning after clicking in save button:
@Hamza-Talibi What is the tracelog in odoo log ?
@YannickB This is a part of tracelog: "/home/odoo10/odoo-dev/odoo/odoo/models.py", line 1074, in _validatefields raise ValidationError("%s\n\n%s" % (("Error while validating constraint"), tools.ustr(e)))
@Hamza-Talibi - please provide the full stack trace
here it is: a-addons: no such volume 2017-03-14 17:47:14,000 24576 INFO db_cloud odoo.addons.clouder.models.model: connect: ssh server1.www.test.com 2017-03-14 17:47:14,012 24576 INFO db_cloud odoo.addons.clouder.models.model: 2017-03-14 17:47:14,045 24576 INFO db_cloud odoo.addons.clouder.models.model: host : 172.16.0.10 2017-03-14 17:47:14,089 24576 INFO db_cloud odoo.addons.clouder.models.model: command : docker volume rm hamzadev-odoo9-data-etc 2017-03-14 17:47:14,146 24576 INFO db_cloud odoo.addons.clouder.models.model: stderr : Error response from daemon: get hamzadev-odoo9-data-etc: no such volume 2017-03-14 17:47:14,184 24576 INFO db_cloud odoo.addons.clouder.models.model: The target isnt configured in the link, skipping deploy link 2017-03-14 17:47:14,275 24576 INFO db_cloud odoo.models.unlink: User #1 deleted clouder.service records with IDs: [22] 2017-03-14 17:47:14,283 24576 INFO db_cloud odoo.models.unlink: User #1 deleted clouder.job records with IDs: [33] 2017-03-14 17:47:14,289 24576 INFO db_cloud odoo.addons.clouder.models.model: The service has children, skipping deploy link 2017-03-14 17:47:14,333 24576 INFO db_cloud odoo.addons.clouder.models.model: =================== 2017-03-14 17:47:14,390 24576 INFO db_cloud odoo.addons.clouder.models.model: FAIL! 2017-03-14 17:47:14,401 24576 INFO db_cloud odoo.addons.clouder.models.model: File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/model.py", line 349, in do_exec getattr(self, action)()
File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/model.py", line 362, in deploy_frame self.deploy()
File "/home/odoo10/odoo-dev/odoo/addons/clouder/clouder_template_salt/template.py", line 175, in deploy super(ClouderService, self).deploy()
File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/service.py", line 1367, in deploy child.create_child_exec()
File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/service_child.py", line 64, in create_child_exec 'node_id': self.node_id.id or service.node_id.id
File "/home/odoo10/odoo-dev/odoo/addons/clouder/clouder_runner_docker/template.py", line 84, in create return super(ClouderService, self).create(vals)
File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/service.py", line 985, in create res = super(ClouderService, self).create(vals)
File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/model.py", line 433, in create res.hook_create(vals)
File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/service.py", line 965, in hook_create self.onchange_application_id()
File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/service.py", line 696, in onchange_application_id setattr(self, key, value)
File "/home/odoo10/odoo-dev/odoo/odoo/fields.py", line 908, in set record.write({self.name: write_value})
File "/home/odoo10/odoo-dev/odoo/addons/clouder/clouder_runner_docker/template.py", line 28, in write res = super(ClouderService, self).write(vals)
File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/service.py", line 1028, in write res = super(ClouderService, self).write(vals)
File "/home/odoo10/odoo-dev/odoo/odoo/models.py", line 3550, in write self._write(old_vals)
File "/home/odoo10/odoo-dev/odoo/odoo/models.py", line 3668, in _write field.write(self.with_context(rel_context), vals[name])
File "/home/odoo10/odoo-dev/odoo/odoo/fields.py", line 2172, in write comodel.create(act[2])
File "/home/odoo10/odoo-dev/odoo/addons/clouder/models/model.py", line 430, in create res = super(ClouderModel, self).create(vals)
File "/home/odoo10/odoo-dev/odoo/odoo/models.py", line 3811, in create record = self.browse(self._create(old_vals))
File "/home/odoo10/odoo-dev/odoo/odoo/models.py", line 3969, in _create self._validate_fields(vals)
File "/home/odoo10/odoo-dev/odoo/odoo/models.py", line 1074, in _validatefields raise ValidationError("%s\n\n%s" % (("Error while validating constraint"), tools.ustr(e)))
Hello, When I click in the button create in Backups I get this error: TypeError: create() takes exactly 2 arguments (1 given)