본문으로 바로가기
반응형

 

 

위 이슈는 RHOSP13 배포시 websocket 에러를 해결한 후 이후에 또 Compute를 증설할 때 발생했다.

 

1. 에러 현황 (노드 증설 템플릿 작성 후 deploy진행 시 아래 에러 발생)

 - 최초 Action tripleo.parameters.update execution failed: Error validating environment for plan overcloud: ERROR: Request limit exceeded: JSON body size (4258720 bytes) exceeds maximum allowed size (4194304 bytes). 발생

 - max_json_body_size 값 2배 변경 후 systemctl restart 수행 후 재 deploy시 동일 현상 발생

 - Director 재기동 후 다시 배포 진행시 다른 에러가 발생

 

- ERROR mistral.executors.default_executor ActionException: ZaqarAction.queue_post failed: Error response from Zaqar. Code: 400. Title: Invalid API request. Description: Message collection size is too large. Max size 2097152.

- 아래 mistral, zaqar conf 변경 후 systemctl restrat 로 프로세스 재기동 하였으나 동일한 에러 발생

- Director 재기동 후 정상 deploy 진행 완료 (systemctl restart로 하라고 권고하나, 제대로 적용이 안됨)

1. mistral.conf
관련 에러
Error response from Zaqar. Code: 400. Title: Invalid API request. Description: Message collection size is too large. Max size 2097152.  (rhksf

[default]
rpc_response_timeout=120 (변경 전)
rpc_response_timeout=300 (변경 후)

[engine]
execution_field_size_limit_kb=65536        (변경 후)
#execution_field_size_limit_kb=32768     (변경 전)


2. zaqar.conf 
#max_messages_post_size=2097152   (변경 전)
max_messages_post_size=3145728     (변경 후)
#producer_batch_size=16384               (변경 전)
producer_batch_size=65536                 (변경 후)


3.  heat.conf
관련 에러
Request limit exceeded: JSON body size (4258720 bytes) exceeds maximum allowed size (4194304 bytes). 발생
#max_json_body_size=4194304 (변경 전)
max_json_body_size=8388608  (변경 후)


관련 에러
Request limit exceeded: Template size (569026 bytes) exceeds maximum allowed size (524288 bytes).
#max_template_size = 524288 (변경 전)
max_template_size = 1048576 (변경 후)

 

 

2. undercloud upgrade 명령시에도 영구 적용시 hieradata에 아래 내용 적용

mistral::engine::execution_field_size_limit_kb: 65536
mistral::rpc_response_timeout: 300
zaqar::max_messages_post_size: 3145728
zaqar::config::zaqar_config:
  oslo_messaging_kafka/producer_batch_size:
    value: 65536
heat::max_json_body_size: 8388608
heat::max_template_size: 1048576

 

 

결국, Director 튜닝이 필요하다는 결론 (디렉터 튜닝 포인트 참고)

https://hkjeon2.tistory.com/51

 

 

 

 

728x90