fix: logging persistent_url flash vs. bootflash #354
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The
persistent_urlattribute in the logging resource causes test failures on C8000v 17.15.3 due toversion-specific path normalization behavior. When the test configures
flash:/local_logging, IOS-XE 17.15.3normalizes this to the canonical device name
bootflash:/local_logging, causing Terraform to detect configurationdrift.
Test failures:
TestAccDataSourceIosxeLoggingon C8000v 17.15.3TestAccIosxeLoggingon C8000v 17.15.3Error observed:
Root Cause
Cisco changed storage path normalization behavior between IOS-XE versions:
IOS-XE 17.12.4 behavior:
bootflash:inputflash:(alias form)flash:, device returnsflash:→ No drift ✓IOS-XE 17.15.3 behavior:
flash:inputbootflash:(canonical form)flash:, device returnsbootflash:→ Drift detected ✗CLI verification on C9300 17.12.4:
The device accepted
bootflash:but stored/returnedflash:in the running config, confirming version-specificnormalization.
Related Issues
Introduced by:
eebfc47(PR enhancement(logging)/Add Additional logging configuration Support in Terraform Provider #334)The original PR added persistent logging attributes with
flash:/local_loggingas the example, which works on17.12 but causes drift on 17.15.3 due to the version-specific normalization behavior discovered during testing.