VIFIB DESCENTRALIZED CLOUD COMPUTING

SlapOS is a decentralized Cloud Computing technology that can automate the deployment and configuration of applications in a heterogeneous environment.
16 - 22 of 22 records
Summary

Hi,

Now I have a .completed file in /opt/slapgrid/bcb8fbfbae583c14297f14ec8ebc3724 . But I am not sure what to do next as it is not clear from this document - http://community.slapos.org/wiki/developer-Allocate.SlapOS.Master.cluster.Instance . The last step I reached was the request command.

I thought the next step would be "Fix Certificate Authority path (Only if you are not deploying in Webrunner)" but it doesn't seem possible as the .pem file is missing from the dir /etc/slapos-ssl .

Even I see this image I see a few reds -

Service Status

Please help me make sense of this.

Thanks,

Shrenik

Hi Shrenik,

Balancer instance is faling to deploy. Can you check what you have in /opt/slapos/log/slapos-node-instance.log ?

Regards,

Alain Takoudjou

 

Hi Alain,

It's odd but I don't spot anything obvious that is wrong in the log.

Herein is a link to the log archive - https://dl.dropboxusercontent.com/u/73028350/slapos-node-instance.rar

I thought that this entire process over slapos was supposed to be very simplified but it seems no one seems to be using it this way and hence it is all unmaintained, therefore all these hiccups in deployment. Is it true that webrunner and online instance at vifib is the only way that all developers are working now?

Do let me know if you want me to try anything else.

Thanks,

Shrenik

 hi Shrenik,

By checking your log file, I realized that there was a mistake in request parameters. We did a commit recently to improve the software release but the documentation was not updated properly. Sorry, this is just a problem of tipo.

In your request parameters, section "REQUEST SLAPOS MASTER INSTANCE" please change this:

parameter_dict["certificate-authority-path"] = ca_path   by   parameter_dict["shared-certificate-authority-path"] = ca_path and request your instance like you did at the first time to update parameters.

If you want, you can also edit that parameter from vifib.com / slapos.org  interface. Go to you instance, search "certificate-authority-path" in your instance XML and replace by "shared-certificate-authority-path". Finally, click on "Update XML" to apply changes.

By applying the changes, your instance will be reprocessed but not all important processes will be restarted. Stop your instance and wait about 5 minutes then start again your instance. The problem will be fixed.

Check that "certificate authority folder" is not empty and that it contain the file "cacert.pem". When you confirm that all are OK, you can continue the documentation at the point "FIX CERTIFICATE AUTHORITY PATH".

I modified the documentation to fix the parameter name.

Please continue your deployment like you started to do. If you want, you can try later the deployment with webrunner, but both cases should work we are doing our best to fix all possibles issues. By using it, you help us to improve the software and the documentation too.

Thank you,

Alain Takoudjou

 

 

Thank you Alain,

I have made some progress. But have a few observations and queries, especially around the documentation.

>1. "service-v6": It's the url that should be used as master_url in all SlapOS Nodes configuration, generally in /etc/opt/slapos/slapos.cfg.

So should I change 'master_url = https://slap.vifib.com' in  /etc/opt/slapos/slapos.cfg to the service-v6 value - https://[2001:67c:1254:12::83b2]:2157 ?


>Deploy Frontend

>To access to the web interface of the SlapOS Master, you will need to setup a reverse proxy (a.k.a "Apache frontend") with slapos. By default, it will use infrastructure of slapos.org to act as a frontend. But you can use yours.

So I assume that this step is optional and I can continue using slapos.org as the frontend for the master. Is my understanding correct? Is the process to configure an Apache based reverse proxy documented with any specifics that may be required in this scenario?

> Request Slave Frontend Instance
> From the SlapOS console: type the following command. You should replace 'COMP-XXXX' in the end by the identifier of your SlapOS Node:

The instructions should be to replace both COMP-XXXX and WEB-v6 URL.

I used this:

request(
  'http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg',
  'Slave frontend for SlapOS Master on COMP-2547',
  partition_parameter_kw={
    'url': 'https://[2001:67c:1254:12::83b2]:2159',
    'type': 'zope',
    'path': 'erp5',
  },
  shared=True,
)

I was able to login but upon first login encountered this error. See screenshot.



With these instructions it seems that the resulting erp5 website is being hosted at https://softinst65419.host.vifib.net which means that it is not on my local server. Shouldn't the "SlapOS Master Slave frontend" be also hosted by my local server or is it? Sorry, I am completely lost on this concept.

>Site Consistency and Configurator

>    First solve Site Consistency like described at:
>    http://www.osoe-project.org/user-Howto.Manage.Promise.On.ERP5/view

The link returns a 404. Hence I continued with some guess work and clicked on 'Check Site Consistency' from the 'My Favourites' menu.

There were some issues -


 I chose 1st and 4th and hit 'Force Reload Promises' and 2nd and 3rd and hit 'Fix Site Configuration'. I hope I have done the right thing. All this was guesswork as I am growing impatient with this deployment and my development team is also waiting far too long on this.

>Check /portal_activities/manageActivities and wait until there is no activity left. You can periodically reload the page to see the status.

There are no activities listed. At least I never could see any whenever I have opened this page.

>Solve again consistency if any consistency error is still present and wait for background activities to finish.

No error to handle.

>As soon "Configure Your Site" is Showed on menu (and make sure you don't have activities) you can guide yourself with :
http://www.osoe-project.org/user-Howto.Configure.ERP5.for.SMB.With.Configurator/view

The only option I get is this -



I clicked on Configure and then went back to check something and then clicked on Configure again and I did not get any options to configure but the installation started and the URL is this -

http://softinst65419.host.vifib.net/portal_configurator/login?field_my_user_preferred_language=en&dialog_id=ConfiguratorTool_view&default_field_my_user_preferred_language:int=0&dialog_method=login&field_your_business_configuration=business_configuration_module/slapos_master_configuration_workflow&update_method=&cancel_url=http%3A//softinst65419.host.vifib.net/portal_configurator/ConfiguratorTool_view&user_preferred_language=en&dialog_category=None&form_id=view

Do let me know if you need any further information. I am trying to proceed ahead from here. It has been around 20 minutes and the screen is showing this, but is progressing slowly -



and there is a lot of activity/load on the server. Server is a VM with 4 cores and 8 GB memory. I am hoping this will complete soon.


I hope this feedback is good enough to make certain improvements to the documentation. Look forward to your thoughts on my observations above.

Is it possible that we can communicate over some IRC or IM such as Skype or Google hangout, etc. because this communication may not actually benefit anyone since most are issues that will happen again once the documentation is perfected and if we interact better, then we may be able to test faster and improve the documentation even faster?

Regards,S
Shrenik

Forgot to mention this -

> If you want, you can also edit that parameter from vifib.com / slapos.org  interface. Go to you instance, search "certificate-authority-path" in your instance XML and replace by "shared-certificate-authority-path". Finally, click on "Update XML" to apply changes.

The ability to 'Update XML' is not available on vifib.com but works only on slapos.org as of now.

As in the documentation I experimented by replacing the  'master_url = https://slap.vifib.com' in  /etc/opt/slapos/slapos.cfg to the service-v6 value - https://[2001:67c:1254:12::83b2]:2157 and re-requested the front-end. I did this with the intent of using the slapos master on my server but seems it is a conceptual mistake as it results in this error in logs. -

[2016-03-28 17:40:11,684] INFO     Processing software releases...
[2016-03-28 17:40:11,689] ERROR    Couldn't connect to the server. Please double check given master-url argument, and make sure that IPv6 is enabled on your machine and that the server is available. The original error was:
HTTPSConnectionPool(host='[2001:67c:1254:12::83b2]', port=2157): Max retries exceeded with url: /getFullComputerInformation?computer_id=COMP-2547 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))
Traceback (most recent call last):
  File "/opt/slapos/eggs/slapos.core-1.3.15-py2.7.egg/slapos/cli/entry.py", line 293, in run_subcommand
    result = cmd.run(parsed_args)
  File "/opt/slapos/eggs/slapos.core-1.3.15-py2.7.egg/slapos/cli/command.py", line 50, in run
    return self.take_action(parsed_args)
  File "/opt/slapos/eggs/slapos.core-1.3.15-py2.7.egg/slapos/cli/slapgrid.py", line 114, in take_action
    return getattr(slapgrid_object, self.method_name)()
  File "/opt/slapos/eggs/slapos.core-1.3.15-py2.7.egg/slapos/grid/slapgrid.py", line 524, in processSoftwareReleaseList
    for software_release in self.computer.getSoftwareReleaseList():
  File "/opt/slapos/eggs/slapos.core-1.3.15-py2.7.egg/slapos/slap/slap.py", line 304, in decorated
    computer = self._connection_helper.getFullComputerInformation(self._computer_id)
  File "/opt/slapos/eggs/slapos.core-1.3.15-py2.7.egg/slapos/slap/slap.py", line 669, in getFullComputerInformation
    xml = self.GET(path, params=params)
  File "/opt/slapos/eggs/slapos.core-1.3.15-py2.7.egg/slapos/slap/slap.py", line 749, in GET
    headers=headers)
  File "/opt/slapos/eggs/slapos.core-1.3.15-py2.7.egg/slapos/slap/slap.py", line 718, in do_request
    "original error was:\n%s" % exc)
ConnectionError: Couldn't connect to the server. Please double check given master-url argument, and make sure that IPv6 is enabled on your machine and that the server is available. The original error was:
HTTPSConnectionPool(host='[2001:67c:1254:12::83b2]', port=2157): Max retries exceeded with url: /getFullComputerInformation?computer_id=COMP-2547 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))


Looks like the documentation needs to be updated.

Also I need to reconfigure the instance as there was a problem as I have explained in my previous 2 posts. Please guide how can I do that.