ISSUE DESCRIPTION [BUG] ELBv2 DescribeListenerAttributes and DescribeCapacityReservation…
- User
ISSUE DESCRIPTION
[BUG] ELBv2 DescribeListenerAttributes and DescribeCapacityReservation return UnsupportedOperation (breaks @pulumi/aws refresh)
Service
ELBv2 (Elastic Load Balancing v2)
AWS API Action
DescribeListenerAttributesandDescribeCapacityReservationExpected behavior
DescribeListenerAttributesreturns the listener's attribute list (empty by default until attributes are set).DescribeCapacityReservationreturns the load balancer's capacity reservation status (empty/none when no capacity is reserved).
Both are normal management-plane reads that the AWS SDKs issue during resource refresh.
Actual behavior
Both actions return:
api error UnsupportedOperation: Action DescribeListenerAttributes is not supported. api error UnsupportedOperation: Action DescribeCapacityReservation is not supported.@pulumi/aws6.66.0+ (and recent Terraform AWS provider versions) call these two actions when refreshing existingLoadBalancer/Listenerresources. Because Floci returnsUnsupportedOperation, the provider errors out on refresh. The only workaround today is pinning@pulumi/awsto a version that predates these calls (e.g.6.30.0).ELBv2 is otherwise well supported in Floci — only these two read actions are missing from
ElbV2QueryHandler's action switch.Reproduction
# Assuming a load balancer + listener already exist (CreateLoadBalancer / CreateListener): aws --endpoint-url http://localhost:4566 elbv2 describe-listener-attributes \ --listener-arn arn:aws:elasticloadbalancing:us-east-1:000000000000:listener/app/my-lb/abc/def # -> UnsupportedOperation: Action DescribeListenerAttributes is not supported. aws --endpoint-url http://localhost:4566 elbv2 describe-capacity-reservation \ --load-balancer-arn arn:aws:elasticloadbalancing:us-east-1:000000000000:loadbalancer/app/my-lb/abc # -> UnsupportedOperation: Action DescribeCapacityReservation is not supported.Environment
- Floci version / image tag:
1.5.18(floci/floci:latest); also present on currentmain - AWS provider that triggers it:
@pulumi/aws6.66.0+ (works when pinned to 6.30.0) - How you're running Floci: Docker / Docker Compose
A PR implementing
DescribeListenerAttributes,ModifyListenerAttributes, and (mirroring the existing load balancer / target group attribute handlers) will reference this issue. - Assistant
I’ll first inspect the ELBv2 service, query handler, models, and existing tests to understand the established attribute-handler and XML response conventions before implementing the missing actions.
- Assistant
The missing actions are absent from both the handler switch and the central AWS query action allowlist. I’ll now read the service storage model and nearby handlers/tests so the implementation matches validation and serialization behavior exactly.
- Assistant
I need the untruncated listener/service sections and complete handler utilities, particularly how empty collections and nullable XML fields are emitted.
- Assistant
The listener model must expose an attributes map for the requested service API. I’ll verify its current shape, the exact switch dispatch, and XML builder null handling before making focused edits.
- Assistant
The
Listeneralready has initialized attributes, so no model change is needed. I’ll add the exact public service APIs requested (including the nested public record), route all three actions through both dispatch layers, and serialize capacity state using the ELBv2 Query API shape while omitting null reservation fields. - Assistant
Python is unavailable in the environment, so no files were changed. I’ll apply the same focused patch with the repository’s available patch tooling.
- Assistant
Neither Python nor
apply_patchexists. I’ll use the provided literalreplaceeditor command in a sequence of small, verifiable edits. - Assistant
Dispatch and allowlist edits succeeded; service edits did not because the editor requires the target file to be open near the match. I’ll use line-range insertion based on the confirmed locations, then add handler methods similarly.
- Assistant
The line insertion replaced (rather than inserted before) the method’s closing brace; I caught this in review. I’ll restore that brace and insert the listener APIs immediately before the rules section.
- Assistant
The service APIs are now structurally correct (with only minor spacing cleanup pending). Next I’ll insert the two handler blocks at stable line positions and then compile immediately to catch any XML-builder overload or syntax issues.
- Assistant
I’ll replace each anchor line with the new methods plus the original anchor, preserving all existing code.
- Assistant
All methods are in place; compilation was blocked only because the Maven wrapper assumes
HOMEis set. I’ll rerun with a temporary HOME, then inspect the complete diff and run ELBv2 tests. - Assistant
Compilation passes. On reviewing the AWS response schema, I found an important serialization correction:
DecreaseRequestsRemaining,MinimumLoadBalancerCapacity, andLastModifiedTimeare result-level fields, whileCapacityReservationStateis an availability-zone list. For no reservation, the nullable fields should be omitted and that list should be empty. I’ll correct this before integration testing. - Assistant
The affected ELBv2 integration suites pass. To explicitly reproduce the reported API flow without altering tests, I’ll start Floci in the background, create a load balancer and listener via Query API, then call describe/modify listener attributes and describe capacity reservation, checking status codes and response XML.
- Assistant
The first live run did not start because Quarkus displayed its one-time analytics prompt (no API requests reached the application). I’ll terminate that stopped process and rerun noninteractively with analytics disabled.
- Assistant
The live reproduction now succeeds: both describe actions return HTTP 200, listener attributes begin empty, modification persists, and capacity reservation returns an empty state. I’ll perform final hygiene checks, verify missing-resource validation through the existing service conventions, and inspect the final diff/status before submission.
- Assistant
Functional checks are clean, but final inspection shows two missing blank separators in the service. I’ll fix those style issues with exact line replacements, then rerun compile and diff checks.
- Assistant
The editor normalizes away trailing blank replacement lines. I’ll prepend a newline directly to each following line instead, which reliably creates the separators without changing code.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.