Application droplet can be started with a different stack than the buildpack used to produce the droplet supports
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 42/100
Rechercherichtung
Verfolge den Ablauf der v3-Builds, die Beziehung der App zu current_droplet und die in den Reproduktionsschritten beschriebene Aktion zum Neustarten der App. Prüfe, wie der App-Lifecycle-Stack und der Droplet-Stack verglichen werden, und ermittle anschließend den relevanten Einstiegspunkt für den Regressionstest. Die Aufgabe ist abgeschlossen, wenn ein nicht übereinstimmender Stack abgelehnt wird, bevor die App startet, mit Abdeckung für den API-Pfad.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Issue
Using the CF APIs it is possible to launch an application droplet with a CF stack which is different than the stack supported by the buildpack used to produce the droplet.
Steps to Reproduce
Prerequisite is a CF offering two different stacks. E.g. cflinuxfs3 and cflinuxfs4. For the steps below we want to switch an application from the cflinuxfs3 to cflinuxfs4 stack.
- Get the app latest package guid with:
cf curl "/v3/packages?app_guids=<app-guid>&order_by=-created_at&states=READY" - Create a new droplet with the
cflinuxfs4stack and the corresponding buildpack supporting thecflinuxfs4stack:
curl curl "/v3/builds" \
-X POST \
-H "Content-type: application/json" \
-d '{
"package": {
"guid": "[package-guid]"
},
lifecycle: {
type: "buildpack",
data: { buildpacks: [<cflinuxfs4-buildpack>], stack: cflinuxfs4}
}
}'
- Wait until the build is done and get the new droplet guid with:
cf curl "/v3/builds/<build-guid>" - Stop the app with:
cf curl "/v3/apps/<guid>/actions/stop" -X POST" - Set the app's current droplet:
cf curl "/v3/apps/[guid]/relationships/current_droplet" \
-X PATCH \
-H "Content-type: application/json" \
-d '{ "data": { "guid": "[<droplet_guid>]" } }'
- Restart the app:
cf curl "/v3/apps/[guid]/actions/restart" -X POST"
Expected result
CF restart request fails because the current stack of the application configured in its lifecycle is cflinuxfs3 but the current droplet is built for the cflinuxfs4 stack.
Current result
The application is restarted with its configured stack which is cflinuxfs3 and e.g. node apps are crashing with strange errors like:
[APP/PROC/WEB/0] STDERR node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by node)
[APP/PROC/WEB/0] STDERR node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by node)
[APP/PROC/WEB/0] STDERR node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by node)
[APP/PROC/WEB/0] STDERR node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)
[APP/PROC/WEB/0] STDERR node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by node)
[APP/PROC/WEB/0] STDERR node: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by node)
[APP/PROC/WEB/0] STDERR node: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by node)
[APP/PROC/WEB/0] STDERR node: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
This is happening because the droplet has dependencies to the CF stack and they can't be resolved.
Possible Fix
Possible fix could be to reject such a start/restart request when the droplet stack is different than the app lifecycle stack. Such an error is happening when you try to push an app with a buildpack which doesn't support the current lifecycle stack of the app:
[STG/0] OUT **ERROR** Stack not supported by buildpack: required stack cflinuxfs3 was not found
[STG/0] ERR Failed to compile droplet: Failed to run all supply scripts: exit status 11
- Vorherrschende Sprache
- Ruby
- Sterne
- 207
- Forks
- 374
- Ø Merge
- 2 T. 19 Std.
- Gemergte PRs (30 T.)
- 68
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cloudfoundry/cloud_controller_ng
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
cloudfoundry/cloud_controller_ng#5255 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
cloudfoundry/cloud_controller_ng#5347 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
cloudfoundry/cloud_controller_ng#5313 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 50/100
cloudfoundry/cloud_controller_ng#5285 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
cloudfoundry/cloud_controller_ng#5246 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in cloudfoundry/cloud_controller_ng
Ähnliche Issues
-
clouflaure de fernandoOffenenhancement
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
cloudflare/mcp#271 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
zerocracy/swarm-template#302 ·
-
[KLayout][DRC] Gat.b1 only checks gate regions, misses facing 3.3 V poly end caps (Figure 5.6)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
IHP-GmbH/IHP-Open-PDK#1266 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Source Support
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
we-promise/sure#4056 ·
Maintainer antworten meist innerhalb von 1 Tag