Giter Club home page Giter Club logo

waldur-mastermind's People

Contributors

ambientlighter avatar emil60 avatar epicmaze avatar faradzh avatar fronox avatar hudolejev avatar igamidanes avatar julietkilo-08 avatar kotodevochka avatar livenson avatar maximprokopenko avatar mikheil-a avatar opennode-jenkins avatar p-p-m avatar shirinovadil avatar tarasmatsyk avatar tsudmi avatar yefimg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

waldur-mastermind's Issues

Enabling Openstack Volume type

Hi lija,

I have an doubt in type in public offering. From the demo.waldur.com i can see some users created openstack volume type in waldur.
But, in my local waldur i cant see any type named openstack volume. For your reference, i shared screenshot below,

image

Openstack

How to add Openstack provider in waldur ??

Docker permissions issue

Error message
[ErrorDetail(string="Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))", code='invalid')]

Any idea how to fix ?

Adding Openstack network

Hi Lija and all !

I recently interested in waldur and also waldur looks great !!

But, now i am facing openstack network issue in waldur.

I added openstack shared instance in waldur and then i trying to spin up a vm but here i cant see and add the network.

I also added external network id in openstack shared instance... and also attached my screenshot as well..

image

image

Printing to console an output fails my creation script

When creating, a new resource via market space script (python).

Error message [ErrorDetail(string='Unexpected structure of output', code=['mattronix,', 'has', 'been', 'deployed.'])] Error traceback Traceback (most recent call last): File "/usr/src/waldur/src/waldur_mastermind/marketplace/utils.py", line 104, in process_order processor(order).process_order(user) File "/usr/src/waldur/src/waldur_mastermind/marketplace/processors.py", line 70, in process_order scope = self.send_request(user) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/waldur/src/waldur_mastermind/marketplace_script/processors.py", line 73, in send_request raise serializers.ValidationError( rest_framework.exceptions.ValidationError: [ErrorDetail(string='Unexpected structure of output', code=['mattronix,', 'has', 'been', 'deployed.'])]

Here is the script for example: https://github.com/mattronix/waldur-custom-offerings/blob/main/create_user_over_ssh/storage-user-add-waldur.py

Auto Invite or Default Org

Hello Waldur,

Any way to auto add new users to a default org, give them some default permissions or auto invite them?

waldur

Hi,

Thank you so much.

Just one problem.

I have a problem

Loading assets, please wait.

After

Unable to bootstrap application.
Unfortunately, connection to server has failed. Please check if you can connect to http://localhost:8080/ from your browser and contact support if the error continues.

Thank you

Please, help me.

Best regards.

Accessing Attributes in Termination Script

When creating a resource with a script i use (python):

attributes = json.loads(os.environ.get("ATTRIBUTES"))

To access the attributes of a resource.

However in a termination script i cant use the same method it seems to access the attributes as it gives me the following error:

2024-02-14T13:53:32.944140165Z [2024-02-14 13:53:32,943: ERROR/ForkPoolWorker-9] Error processing order type: Terminate, offering: Storage Share fs.ti, created_by: 089353b4-782e-44ba-a88a-382920d816e8 (Matthew Frost). Order ID: 129. Exception: [ErrorDetail(string='Command '['python', 'script']' in image 'mattronix:alpine-py-3.11' returned non-zero exit status 1: b'Traceback (most recent call last):\n File "/work/script", line 117, in \n new_user = attributes["username"]\n

When i do a print its also not set it seems, however i do see them in the database.

(once im finished with these scripts il send them your way also for the examples)

Unable to create order PDF

Issue description

Hello @AmbientLighter ,

On a headless server this happenes:

OS info:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

Errors

[2020-02-04 09:32:53,450: ERROR/ForkPoolWorker-2] Task waldur_mastermind.marketplace.tasks.create_order_pdf[ad8bad1c-e41c-4872-9801-8228a062f753] raised unexpected: OSError('wkhtmltopdf exited with non-zero code 1. error:\nqt.qpa.screen: QXcbConnection: Could not connect to display \nCould not connect to any X display.\n',)
Traceback (most recent call last):
  File "~/waldur-mastermind/venv/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "~/waldur-mastermind/venv/lib/python3.6/site-packages/celery/app/trace.py", line 648, in __protected_call__
    return self.run(*args, **kwargs)
  File "~/waldur-mastermind/src/waldur_mastermind/marketplace/tasks.py", line 74, in create_order_pdf
    utils.create_order_pdf(order)
  File "~/waldur-mastermind/src/waldur_mastermind/marketplace/utils.py", line 112, in create_order_pdf
    pdf = pdfkit.from_string(html, False)
  File "~/waldur-mastermind/venv/lib/python3.6/site-packages/pdfkit/api.py", line 72, in from_string
    return r.to_pdf(output_path)
  File "~/waldur-mastermind/venv/lib/python3.6/site-packages/pdfkit/pdfkit.py", line 159, in to_pdf
    raise IOError("wkhtmltopdf exited with non-zero code {0}. error:\n{1}".format(exit_code, stderr))
OSError: wkhtmltopdf exited with non-zero code 1. error:
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.

Steps to reproduce the issue

  1. Setup waldur-mastermind on any headless server
  2. And try to buy any available service, you will get the above errors

How to fix this?

You can use Python xvfbwrapper

Basic usage

from xvfbwrapper import Xvfb

vdisplay = Xvfb()
vdisplay.start()

# launch stuff inside
# virtual display here.

vdisplay.stop()

Usage as a Context Manager:

from xvfbwrapper import Xvfb

with Xvfb() as xvfb:
    # launch stuff inside virtual display here.
    # It starts/stops around this code block.

Or you can use alternative of pdfkit named weasyprint

CPendingDeprecationWarning

Hi, got this:

CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine

Waldur and Ubuntu Microstack

Hi:

I've installed Microstack and have a functioning Openstack installation. I also have Waldur docker version installed. Has anyone tried Waldur with Microstack? At the moment, Waldur caddy is clashing with port 443 on the Openstack installation.

Cheers,
Dave

Organisation offerings shows no offerings

On the Organization offering page, even if i unselect the two filters that are set by default i do not see any offering from my organisation, on the admin Offering page i do see them, they are also created from the add new offering button on the screenshot below:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.