diff --git a/api_client/client.py b/api_client/client.py index d2a8f23..2f04148 100644 --- a/api_client/client.py +++ b/api_client/client.py @@ -179,6 +179,7 @@ class IaaSClient: return self._make_request('GET', f'workloads/containers/{container_id}') def create_container(self, data): + # TODO - If the create failes, i.e not enough hosts, we need to catch andhandle the 400 response return self._make_request('POST', 'workloads/containers', data) def update_container(self, container_id, data): @@ -195,6 +196,7 @@ class IaaSClient: return self._make_request('GET', f'workloads/virtual_machines/{virtual_machine_id}') def create_virtual_machine(self, data): + # TODO - If the create failes, i.e not enough hosts, we need to catch andhandle the 400 response return self._make_request('POST', 'workloads/virtual_machines', data) def update_virtual_machine(self, virtual_machine_id, data): diff --git a/requirements.txt b/requirements.txt index f294894..2fa4a2a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,4 +13,8 @@ streamlit aiohttp #sudo apt install python3-rados python3-rbd librados-dev librbd-dev # ln -s /usr/lib/python3/dist-packages/rados* $(python -c 'import site; print(site.getsitepackages()[0])')/ -# ln -s /usr/lib/python3/dist-packages/rbd* $(python -c 'import site; print(site.getsitepackages()[0])')/ \ No newline at end of file +# ln -s /usr/lib/python3/dist-packages/rbd* $(python -c 'import site; print(site.getsitepackages()[0])')/ + +libvirt-python # I think requires libvirt-dev? +# Alternativly apt-get install libvirt-dev + diff --git a/streamlit_server/views/workload_hosts.py b/streamlit_server/views/workload_hosts.py index 46b9cee..2c38d2d 100644 --- a/streamlit_server/views/workload_hosts.py +++ b/streamlit_server/views/workload_hosts.py @@ -17,7 +17,7 @@ def render_list(): st.markdown(f"### {host['name']}") st.text(f"Hostname: {host['hostname']}") st.text(f"Region ID: {host['region_id']}") - + # TODO - this bit doesnt work, we arent pulling the labels when we pull the lists of hosts # Display capability tags if available if 'labels' in host and host['labels']: capabilities = []