2025-09-16 09:56:08,539 - INFO - Domain Default found not creating
2025-09-16 09:56:08,735 - INFO - Project ctest-TestBasicPolicy-96170227 not found, creating it
2025-09-16 09:56:09,232 - INFO - Created Project:ctest-TestBasicPolicy-96170227, ID : a16a9884-cba6-41fb-bd67-4d20c256a618
2025-09-16 09:56:10,723 - INFO - ================================================================================
2025-09-16 09:56:10,723 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-16 09:56:10,723 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-09-16 09:56:10,994 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-16 09:56:10,994 - INFO - Initial checks done. Running the testcase now
2025-09-16 09:56:10,994 - INFO -
2025-09-16 09:56:11,581 - DEBUG - Response for create_network : {'network': {'id': '9385772f-972d-488e-a5f4-6d775a393d70', 'name': 'ctest-vn-05351957', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'project_id': 'a16a9884cba641fbbd674d20c256a618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-vn-05351957'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 09:56:11,743 - DEBUG - Response for create_subnet : {'subnet': {'id': '727b8bd5-cd15-4086-b35d-5a88faf6d959', 'name': '', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'network_id': '9385772f-972d-488e-a5f4-6d775a393d70', 'ip_version': 4, 'cidr': '190.33.85.128/26', 'allocation_pools': [{'start': '190.33.85.130', 'end': '190.33.85.190'}], 'gateway_ip': '190.33.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.33.85.130', 'tags': [], 'project_id': 'a16a9884cba641fbbd674d20c256a618'}}
2025-09-16 09:56:11,763 - INFO - Created VN ctest-vn-05351957
2025-09-16 09:56:11,818 - DEBUG - VN ctest-vn-05351957 UUID is 9385772f-972d-488e-a5f4-6d775a393d70
2025-09-16 09:56:12,157 - DEBUG - Response for create_network : {'network': {'id': 'b2c4f3a9-cb6b-4543-8153-dd65196a5eb0', 'name': 'ctest-vn-11881682', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'project_id': 'a16a9884cba641fbbd674d20c256a618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-vn-11881682'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 09:56:12,346 - DEBUG - Response for create_subnet : {'subnet': {'id': '04836241-63b6-428c-aade-5c4530552dc4', 'name': '', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'network_id': 'b2c4f3a9-cb6b-4543-8153-dd65196a5eb0', 'ip_version': 4, 'cidr': '23.253.208.192/26', 'allocation_pools': [{'start': '23.253.208.194', 'end': '23.253.208.254'}], 'gateway_ip': '23.253.208.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.253.208.194', 'tags': [], 'project_id': 'a16a9884cba641fbbd674d20c256a618'}}
2025-09-16 09:56:12,363 - INFO - Created VN ctest-vn-11881682
2025-09-16 09:56:12,417 - DEBUG - VN ctest-vn-11881682 UUID is b2c4f3a9-cb6b-4543-8153-dd65196a5eb0
2025-09-16 09:56:12,608 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-09-16 09:56:12,903 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9385772f-972d-488e-a5f4-6d775a393d70', 'name': 'ctest-vn-05351957', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'project_id': 'a16a9884cba641fbbd674d20c256a618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['727b8bd5-cd15-4086-b35d-5a88faf6d959'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-vn-05351957'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-policy-allow-all-17440523']], 'subnet_ipam': [{'subnet_cidr': '190.33.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 09:56:13,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2c4f3a9-cb6b-4543-8153-dd65196a5eb0', 'name': 'ctest-vn-11881682', 'tenant_id': 'a16a9884cba641fbbd674d20c256a618', 'project_id': 'a16a9884cba641fbbd674d20c256a618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04836241-63b6-428c-aade-5c4530552dc4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-vn-11881682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-policy-allow-all-17440523']], 'subnet_ipam': [{'subnet_cidr': '23.253.208.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 09:56:13,301 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 09:56:13,604 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 09:56:13,635 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25
2025-09-16 09:56:13,648 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618
2025-09-16 09:56:13,724 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70
2025-09-16 09:56:13,737 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70
2025-09-16 09:56:13,746 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161
2025-09-16 09:56:13,753 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161
2025-09-16 09:56:13,761 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c6c21712-69cf-45f8-9079-dfed0846bef2
2025-09-16 09:56:13,768 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 09:56:13,768 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70
2025-09-16 09:56:13,780 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161
2025-09-16 09:56:13,797 - INFO - Verified VN network id 11 for VN 9385772f-972d-488e-a5f4-6d775a393d70
2025-09-16 09:56:13,797 - INFO - Verifications in API Server for VN ctest-vn-05351957 passed
2025-09-16 09:56:13,797 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70
2025-09-16 09:56:13,807 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161
2025-09-16 09:56:13,814 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/56c745d4-2554-4f6f-8236-e4c374b70161
2025-09-16 09:56:13,821 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c6c21712-69cf-45f8-9079-dfed0846bef2
2025-09-16 09:56:13,834 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96170227', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10630033541761419406', 'uuid-lslong': '11958303269957746032'}, 'enable': 'true', 'created': '2025-09-16T09:56:11', 'last-modified': '2025-09-16T09:56:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952358'}
2025-09-16 09:56:13,840 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 09:56:13,840 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05351957 passed
2025-09-16 09:56:13,840 - DEBUG - ====Verifying policy data for ctest-vn-05351957 in API_Server ======
2025-09-16 09:56:13,840 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 09:56:13,846 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25
2025-09-16 09:56:13,864 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618
2025-09-16 09:56:13,941 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9385772f-972d-488e-a5f4-6d775a393d70
2025-09-16 09:56:13,950 - DEBUG - ==>Verifying data for policy with id: 79c056a7-d9d5-45c4-ad4c-148a43fc6bc7, fqn: ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-policy-allow-all-17440523']
2025-09-16 09:56:13,950 - INFO - VN ctest-vn-05351957 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 09:56:13,951 - DEBUG - Verifying the vn in opserver
2025-09-16 09:56:13,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957 virtual network link through opserver 10.0.0.22
2025-09-16 09:56:13,951 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-16 09:56:14,256 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-16 09:56:14,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957?flat'}
2025-09-16 09:56:14,317 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-05351957 is found in opserver
2025-09-16 09:56:14,330 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 09:56:14,335 - DEBUG - VRF ids for VN ctest-vn-05351957: {}
2025-09-16 09:56:14,335 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 09:56:14,341 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25
2025-09-16 09:56:14,352 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618
2025-09-16 09:56:14,427 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0
2025-09-16 09:56:14,439 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0
2025-09-16 09:56:14,448 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22
2025-09-16 09:56:14,454 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22
2025-09-16 09:56:14,461 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e35934c4-1187-4398-9cec-8986098625c2
2025-09-16 09:56:14,467 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 09:56:14,467 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0
2025-09-16 09:56:14,475 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22
2025-09-16 09:56:14,489 - INFO - Verified VN network id 12 for VN b2c4f3a9-cb6b-4543-8153-dd65196a5eb0
2025-09-16 09:56:14,489 - INFO - Verifications in API Server for VN ctest-vn-11881682 passed
2025-09-16 09:56:14,489 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0
2025-09-16 09:56:14,497 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22
2025-09-16 09:56:14,504 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/95c196f3-533a-42e2-87c9-92c0584ada22
2025-09-16 09:56:14,513 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e35934c4-1187-4398-9cec-8986098625c2
2025-09-16 09:56:14,527 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96170227', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12881688744774288707', 'uuid-lslong': '9319035480247525040'}, 'enable': 'true', 'created': '2025-09-16T09:56:12', 'last-modified': '2025-09-16T09:56:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411561'}
2025-09-16 09:56:14,534 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 09:56:14,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11881682 passed
2025-09-16 09:56:14,534 - DEBUG - ====Verifying policy data for ctest-vn-11881682 in API_Server ======
2025-09-16 09:56:14,534 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 09:56:14,541 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff9cace5-bf78-42f6-b058-20c74db16c25
2025-09-16 09:56:14,554 - DEBUG - Requesting: http://10.0.0.22:8082/project/a16a9884-cba6-41fb-bd67-4d20c256a618
2025-09-16 09:56:14,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2c4f3a9-cb6b-4543-8153-dd65196a5eb0
2025-09-16 09:56:14,643 - DEBUG - ==>Verifying data for policy with id: 79c056a7-d9d5-45c4-ad4c-148a43fc6bc7, fqn: ['default-domain', 'ctest-TestBasicPolicy-96170227', 'ctest-policy-allow-all-17440523']
2025-09-16 09:56:14,643 - INFO - VN ctest-vn-11881682 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 09:56:14,643 - DEBUG - Verifying the vn in opserver
2025-09-16 09:56:14,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682 virtual network link through opserver 10.0.0.22
2025-09-16 09:56:14,643 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-16 09:56:14,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682?flat'}
2025-09-16 09:56:14,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96170227:ctest-vn-11881682 is found in opserver
2025-09-16 09:56:14,666 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 09:56:14,671 - DEBUG - VRF ids for VN ctest-vn-11881682: {}
2025-09-16 09:56:14,733 - DEBUG - Services list from nova: [