Skip to content
TheChatArchiveThe Chat Archive
DeepSeekdeepseek/deepseek-v4-pro· deepseekHugging Face ibragim-bad/swe_rebench_07_2026_trajectories

ISSUE DESCRIPTION [BUG] ELBv2 DescribeListenerAttributes and DescribeCapacityReservation…

  1. User

    ISSUE DESCRIPTION

    [BUG] ELBv2 DescribeListenerAttributes and DescribeCapacityReservation return UnsupportedOperation (breaks @pulumi/aws refresh)

    Service

    ELBv2 (Elastic Load Balancing v2)

    AWS API Action

    DescribeListenerAttributes and DescribeCapacityReservation

    Expected behavior

    • DescribeListenerAttributes returns the listener's attribute list (empty by default until attributes are set).
    • DescribeCapacityReservation returns 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/aws 6.66.0+ (and recent Terraform AWS provider versions) call these two actions when refreshing existing LoadBalancer / Listener resources. Because Floci returns UnsupportedOperation, the provider errors out on refresh. The only workaround today is pinning @pulumi/aws to 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 current main
    • AWS provider that triggers it: @pulumi/aws 6.66.0+ (works when pinned to 6.30.0)
    • How you're running Floci: Docker / Docker Compose

    A PR implementing DescribeListenerAttributes, ModifyListenerAttributes, and DescribeCapacityReservation (mirroring the existing load balancer / target group attribute handlers) will reference this issue.

    Interface

    Type: Function Name: describeListenerAttributes Path: src/main/java/io/github/hectorvent/floci/services/elbv2/ElbV2Service.java Input: region: String, arn: String Output: Map<String, String> Description: Returns a copy of the attributes map for the listener identified by the given ARN.

    Type: Function Name: modifyListenerAttributes Path: src/main/java/io/github/hectorvent/floci/services/elbv2/ElbV2Service.java Input: region: String, arn: String, newAttrs: Map<String, String> Output: void Description: Merges the provided key-value pairs into the listener's existing attributes.

    Type: Record Name: CapacityReservation Path: src/main/java/io/github/hectorvent/floci/services/elbv2/ElbV2Service.java Public API: CapacityReservation(Integer decreaseRequestsRemaining, Integer minimumCapacityUnits, Instant lastModifiedTime) Description: Stable representation of load-balancer capacity-reservation state. Floci returns null fields when no capacity is reserved.

    Type: Function Name: describeCapacityReservation Path: src/main/java/io/github/hectorvent/floci/services/elbv2/ElbV2Service.java Input: region: String, arn: String Output: CapacityReservation Description: Validates the load balancer and returns its capacity-reservation state.

    ADDITIONAL ADVICE

    Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use git checkout <file> to restore the file to its original state. You can also reset all changes in the repository using git reset --hard command. Additionally, you can use git stash and git stash pop to temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you call submit) using git status or git diff commands. However you don't need to use git add or git commit before submitting your changes. In fact, submit only submits currently unstaged changes because it uses git diff to get the changes that need to be submitted.

    CHECKLIST

    Before submitting your solution, please go over the following checklist and make sure you've done everything:

    • If an error was reported in the issue description, I have successfully reproduced it.
    • If an error was reported in the issue description, I have confirmed that my fix resolves the error.
    • I have thought about edge cases and made sure my fix handles them as well.
    • I have run existing tests in the repository that might have been affected by the change I made and confirmed that they pass. I want you to list every bullet from this checklist and write your reasoning for why you think you did it or didn't need to.

    Repository has been uploaded and your shell is currently at the repository root. Time to solve the issue!

    (Current directory: /floci, current file: none) bash-$

  2. DeepSeek Assistant

    Let me start by understanding the repository structure and the issue. The issue is about missing implementations for DescribeListenerAttributes, ModifyListenerAttributes, and DescribeCapacityReservation in the ELBv2 service of Floci (which appears to be a local AWS mock similar to LocalStack).

    Let me explore the repository structure first.

  3. DeepSeek Assistant

    Let me look at the main source code and the Elbv2 service.

  4. DeepSeek Assistant

    Now let me look at the ELBv2 service files:

  5. DeepSeek Assistant

    Let me examine the key files:

  6. DeepSeek Assistant

    Let me try opening the file differently.

  7. DeepSeek Assistant

    Let me see the full switch statement and more of the file

  8. DeepSeek Assistant

    Let me see the existing attribute handling patterns:

  9. DeepSeek Assistant

    Let me look at the existing LB/TG attribute handlers to understand the pattern

  10. DeepSeek Assistant

    Now let me see the target group attribute handlers

  11. DeepSeek Assistant

    Now let me look at ElbV2Service.java

  12. DeepSeek Assistant

    Let me use the bash terminal to open and view the ElbV2Service.java file.

  13. DeepSeek Assistant

    Let me see the existing attribute functions and the models

  14. DeepSeek Assistant

    Let me look at the LoadBalancer, Listener, and TargetGroup models

  15. DeepSeek Assistant

    I need to do one at a time.

  16. DeepSeek Assistant

    Now let me look at the Listener model:

  17. DeepSeek Assistant

    Let me look at the service methods more

  18. DeepSeek Assistant

    Let me also see the target group attributes and look at the listener service

  19. DeepSeek Assistant

    Let me find the requireListener and requireLoadBalancer methods

  20. DeepSeek Assistant

    Let me look at the require

  21. DeepSeek Assistant

    Let me look at the parseAttributes helper and the full end of the Query

  22. DeepSeek Assistant

    Let me see the parseAttributes and the listener service area:

  23. DeepSeek Assistant

    Now let me see the rest of the ElbV2Service to understand where to add the new methods:

  24. DeepSeek Assistant

    Let me find a good insertion point for the new methods:

  25. DeepSeek Assistant

    Let me see the QueryHandler listener section and the end area better

  26. DeepSeek Assistant

    Let me see the end of the query handler file

  27. DeepSeek Assistant

    Let me see the end of ElbV2Service.java:

  28. DeepSeek Assistant

    Now I have all the information I need. Let me implement the changes. I'll start with ElbV2Service.java:

    1. Add describeListenerAttributes and modifyListenerAttributes after modifyTargetGroupAttributes
    2. Add CapacityReservation record and describeCapacityReservation at end

    Then ElbV2QueryHandler.java:

    1. Add cases to the switch
    2. Add handler methods
  29. DeepSeek Assistant

    I notice an extra closing brace at line 282. Let me fix that.

  30. DeepSeek Assistant

    I need to remove the extra } at line 282.

  31. DeepSeek Assistant

    Good. Now let me add the CapacityReservation record and describeCapacityReservation method at the end of the file.

  32. DeepSeek Assistant

    Now let me add the CapacityReservation record and describeCapacityReservation method. I'll replace the final } with the new code plus the closing brace:

  33. DeepSeek Assistant

    I see there's an extra } at line 796. Let me remove it

  34. DeepSeek Assistant

    Good. Now let me update ElbV2QueryHandler.java. First, let me add the three new cases to the switch statement.

  35. DeepSeek Assistant

    Good. Now I need to add the DescribeCapacityReservation case. Let me add it after the load balancer attributes cases.

  36. DeepSeek Assistant

    I lost SetSecurityGroups! Let me add it back.

  37. DeepSeek Assistant

    Good. Now let me add the handler methods. Let me add them after handleDescribeListenerCertificates.

  38. DeepSeek Assistant

    Now let me add the three handler methods. I'll insert them between handleDescribeListenerCertificates and the XML builders section.

  39. DeepSeek Assistant

    Now let me verify all changes with git diff and check if the project builds:

  40. DeepSeek Assistant

    Let me check the build system and run the tests:

  41. DeepSeek Assistant

    Let me check the build system

  42. DeepSeek Assistant

    Let me check for Maven and try to compile the project:

  43. DeepSeek Assistant

    Let me check if the project compiles. Let me try a quick compilation:

  44. DeepSeek Assistant

    I see the problem. The // ── Listeners ── comment was followed by code that's part of the createListener method. My insertion broke it. Let me look at the current structure:

  45. DeepSeek Assistant

    I see the issue - my edit stripped the createListener method header. Let me fix this by adding it back:

  46. DeepSeek Assistant

    I see that line 304 is missing the start of the statement. Let me fix this:

  47. DeepSeek Assistant

    Now let me try to compile again:

  48. DeepSeek Assistant

    Compilation successful! Now let me run the existing ELBv2 tests:

  49. DeepSeek Assistant

    All 27 existing tests pass. Let me also run the other ELBv2 test:

  50. DeepSeek Assistant

    All tests pass. Let me also verify our changes with a quick review using git diff:

  51. DeepSeek Assistant

    The changes look clean and correct. Let me also check the compatibility test for ELBv2:

  52. DeepSeek Assistant

    Everything looks great. Let me do a final verification of the complete changes

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.