From nobody Thu Oct 05 09:01:11 2023 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S1QX75J5Vz4vxl9 for ; Thu, 5 Oct 2023 09:01:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S1QX74sp2z3DPs; Thu, 5 Oct 2023 09:01:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696496471; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6OpFL5DIMopIoMIWfnymaO0qe22Oxwj4rvkKgFFP4pQ=; b=wAhc+Fda995j2GVQKcnooC8fdnYDiJo1ZvPKKwfbpb5MHxvq6Guw2U9c2Vunp4S7e8vP+v C5Zqn4ZenDbjQbth4VemDE8MWRamDXtn6dbaGII8pqUsm/MwmpkQ7RHIANu3MEP2Kobb/l ZJcXqfmeF0Lbwk60BKjeHIIOZubybSRPyJMXLQmzuZsjzqbgLc0LuBDhbAnOd3+OrD3vXx b0korJku6puB3bArKSHEFiVD2H65glf6KIgGJ4Ao23e8dzktCh76C4KH3jE7bh9B0r4k90 Q5uc6ZzwSF6T0i/NjFJvsgHNBsp6yzERy7rtG7AUbexIEHqTG+fgkeX3+72kRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696496471; a=rsa-sha256; cv=none; b=ldW2fepnKC9noWoJaiOY44xbRPbRb+9fkPVZtyyfUdU2mpqhXkLtiDGH1PW3f6llmrvuG2 EP4E6UR6lM75KPEqqotJFGTY1GEWKvEFa12hwvHFaOkAtuIqtwWB8/ft1g345ebbFhjifd UqZIijfcEjwBwX5zKgKWtTJ9cZbxESlcoOEL2aKUj8Yw50z3/vLP1WlY8D9UAsqQHP8OEe 9uyNzuzfN7Y3jrd7sx/h7Zatuh6m1WmIldveuJXJsZpAHkv7qWs8PN157Jo68meIFzO1ar Q7ILw4o9IBewMNkmt7u0vhu7EglYE5FpHMiUZLnaxBAH27kURkwmmPOvs/xVEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696496471; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6OpFL5DIMopIoMIWfnymaO0qe22Oxwj4rvkKgFFP4pQ=; b=oJpBkA3WHlHxlfH/x70FbDQr2j11gS27M8GWPlKEM799XNS8HIERp9uQe7DMmI+K1PXm/X iKxXtn+QfL5f4+nivMSKgiBoRZVrXCxBMSnaJyCHayaxjkjhV+YRWiP3I+5fjugc55e8ZN pB4z530to/s2XGpKOm5rg8oLgVuv5KizDm/VQdATC/pZW0b0tQcnTDFwergP9FxJ/UvWsd 1xoyXC/C11jCq63VJe6927XAREasd7I1JvhMPf48kQWad9+jHnU+8lvgv5QcoW54zbRCS9 dpE9Fd+Nd2uyql5J3/DzyCfpf7Y+VoA6SZtQb7O2LXk1zjesGWot6YIdn8B6cQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S1QX73yCbz1DjD; Thu, 5 Oct 2023 09:01:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39591BlH056443; Thu, 5 Oct 2023 09:01:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39591BuA056440; Thu, 5 Oct 2023 09:01:11 GMT (envelope-from git) Date: Thu, 5 Oct 2023 09:01:11 GMT Message-Id: <202310050901.39591BuA056440@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Lorenzo Salvadore Subject: git: e818e83a2a - main - Status/2023Q3/openstack.adoc: Add report List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: salvadore X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e818e83a2ab162ea6b7699036a0f802094d8af8c Auto-Submitted: auto-generated The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/doc/commit/?id=e818e83a2ab162ea6b7699036a0f802094d8af8c commit e818e83a2ab162ea6b7699036a0f802094d8af8c Author: Chih-Hsin Chang AuthorDate: 2023-10-05 08:20:58 +0000 Commit: Lorenzo Salvadore CommitDate: 2023-10-05 09:01:05 +0000 Status/2023Q3/openstack.adoc: Add report Reviewed by: lwhsu, Graham Perrin Pull Request: https://github.com/freebsd/freebsd-doc/pull/272 --- .../status/report-2023-07-2023-09/openstack.adoc | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/website/content/en/status/report-2023-07-2023-09/openstack.adoc b/website/content/en/status/report-2023-07-2023-09/openstack.adoc new file mode 100644 index 0000000000..fc9cd83181 --- /dev/null +++ b/website/content/en/status/report-2023-07-2023-09/openstack.adoc @@ -0,0 +1,35 @@ +=== OpenStack on FreeBSD + +Links: + +link:https://www.openstack.org/[OpenStack] URL: link:https://www.openstack.org/[] + +link:https://github.com/openstack-on-freebsd[OpenStack on FreeBSD] URL: link:https://github.com/openstack-on-freebsd[] + +Contact: Chih-Hsin Chang + +Contact: Li-Wen Hsu + +OpenStack, an open-source cloud operating system, has been a valuable resource for deploying various resource types on cloud platforms. +However, the challenge has been running OpenStack's control plane on FreeBSD hosts. +Our project's mission is to enable FreeBSD to function seamlessly as an OpenStack host. + +Throughout this quarter, we focused on the last bit of the entire proof of concept (POC), the VM console integration. +The goal is to let users get serial consoles via the OpenStack client to access the VM instances running on the FreeBSD-based OpenStack cluster. +This is also important because right now we do not have a port for the managed DHCP service in Neutron. +Users need to manually configure the correct IP addresses for the VM instances to have network connectivity. +However, man:bhyve[8] does not natively expose serial consoles, so we need to instead export the man:nmdm[4] device over the network. +This is done by a custom proxy called link:https://github.com/openstack-on-freebsd/socat-manager/blob/main/server.py[`socat-manager`], and yes, we leverage man:socat[1] to listen on specific ports allocated by OpenStack `nova-compute` to be integrated into their workflow. +With the aid of another critical part, the link:https://github.com/openstack-on-freebsd/socat-manager/tree/main/hooks[custom Libvirt hook for bhyve], we can connect the two endpoints and make the consoles accessible to the users. +During development of the hook script, we found that the hook interface provided by Libvirt specifically for bhyve was link:https://gitlab.com/libvirt/libvirt/-/issues/528[not well implemented]. +Fortunately, the Libvirt developer link:https://gitlab.com/libvirt/libvirt/-/commit/ad8c4d9d6d09d51a9530ed84fcd2220713aab928[fixed the issue] promptly, and we plan to refine our hook script when the fix is released in the future. + +We also addressed the nested bhyve issue (running bhyve VMs on top of Linux KVM) in our development environment mentioned in https://www.freebsd.org/status/report-2023-04-2023-06/#_openstack_on_freebsd[the last quarterly report]. +It is caused by the APIC emulation of the two VT-x features: `VID` and `PostIntr`. +Our host's CPUs have these two features so we need to disable them at the L1 guest, which acts as a bhyve host, in [.filename]#/boot/loader.conf# to make L2 guests not hanging. +It is crucial for us to be able to work on the project in a fully virtualized environment due to the lack of physical resources. +This could be equally important for people interested in the project, lowering the bar for them to try out or validate the entire POC on their environment without too demanding setup requirements. + +Looking ahead to Q4, our focus is wrapping up the POC with revised documentation and porting to FreeBSD 14.0-RELEASE. +Dependencies that lack the corresponding FreeBSD packages will be ported one by one. +We also aim to rebase our work with OpenStack link:https://releases.openstack.org/antelope/index.html[2023.1 Antelope]. +We invite those interested to explore our documentation and contribute to this project's success. + +Sponsor: The FreeBSD Foundation