2025-04-09 12:30:52,394 - INFO - Domain Default found not creating
2025-04-09 12:30:52,559 - INFO - Project ctest-TestBasicPolicy-95445227 not found, creating it
2025-04-09 12:30:53,043 - INFO - Created Project:ctest-TestBasicPolicy-95445227, ID : 43b42d51-61c2-41ed-a0af-2683b4679599
2025-04-09 12:30:54,559 - INFO - ================================================================================
2025-04-09 12:30:54,559 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 12:30:54,559 - 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-04-09 12:30:54,817 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-04-09 12:30:54,817 - INFO - Initial checks done. Running the testcase now
2025-04-09 12:30:54,817 - INFO -
2025-04-09 12:30:55,595 - DEBUG - Response for create_network : {'network': {'id': 'f2298002-afcf-4452-adc4-2687c7c74a33', 'name': 'ctest-vn-91323444', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'project_id': '43b42d5161c241eda0af2683b4679599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-vn-91323444'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 12:30:55,761 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa3f9548-f873-40d5-8091-b31a881d56aa', 'name': '', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'network_id': 'f2298002-afcf-4452-adc4-2687c7c74a33', 'ip_version': 4, 'cidr': '89.216.173.128/26', 'allocation_pools': [{'start': '89.216.173.130', 'end': '89.216.173.190'}], 'gateway_ip': '89.216.173.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.216.173.130', 'tags': [], 'project_id': '43b42d5161c241eda0af2683b4679599'}}
2025-04-09 12:30:55,780 - INFO - Created VN ctest-vn-91323444
2025-04-09 12:30:55,834 - DEBUG - VN ctest-vn-91323444 UUID is f2298002-afcf-4452-adc4-2687c7c74a33
2025-04-09 12:30:56,152 - DEBUG - Response for create_network : {'network': {'id': '82324401-c7ff-4d81-aa35-5030be36154d', 'name': 'ctest-vn-02554010', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'project_id': '43b42d5161c241eda0af2683b4679599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-vn-02554010'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 12:30:56,300 - DEBUG - Response for create_subnet : {'subnet': {'id': '79324f98-ec3e-4231-b7ea-899e70d1820f', 'name': '', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'network_id': '82324401-c7ff-4d81-aa35-5030be36154d', 'ip_version': 4, 'cidr': '58.18.178.128/26', 'allocation_pools': [{'start': '58.18.178.130', 'end': '58.18.178.190'}], 'gateway_ip': '58.18.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.18.178.130', 'tags': [], 'project_id': '43b42d5161c241eda0af2683b4679599'}}
2025-04-09 12:30:56,317 - INFO - Created VN ctest-vn-02554010
2025-04-09 12:30:56,369 - DEBUG - VN ctest-vn-02554010 UUID is 82324401-c7ff-4d81-aa35-5030be36154d
2025-04-09 12:30:56,482 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444, 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-95445227:ctest-vn-02554010, 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-04-09 12:30:56,788 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2298002-afcf-4452-adc4-2687c7c74a33', 'name': 'ctest-vn-91323444', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'project_id': '43b42d5161c241eda0af2683b4679599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa3f9548-f873-40d5-8091-b31a881d56aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-vn-91323444'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-policy-allow-all-36210063']], 'subnet_ipam': [{'subnet_cidr': '89.216.173.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 12:30:57,021 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82324401-c7ff-4d81-aa35-5030be36154d', 'name': 'ctest-vn-02554010', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'project_id': '43b42d5161c241eda0af2683b4679599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79324f98-ec3e-4231-b7ea-899e70d1820f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-vn-02554010'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-policy-allow-all-36210063']], 'subnet_ipam': [{'subnet_cidr': '58.18.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 12:30:57,194 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-09 12:30:57,499 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-09 12:30:57,532 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d
2025-04-09 12:30:57,546 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599
2025-04-09 12:30:57,625 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33
2025-04-09 12:30:57,637 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33
2025-04-09 12:30:57,648 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc
2025-04-09 12:30:57,656 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc
2025-04-09 12:30:57,664 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d7632dec-888c-4edf-86d6-30125a5d8f66
2025-04-09 12:30:57,671 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 12:30:57,671 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33
2025-04-09 12:30:57,682 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc
2025-04-09 12:30:57,700 - INFO - Verified VN network id 9 for VN f2298002-afcf-4452-adc4-2687c7c74a33
2025-04-09 12:30:57,700 - INFO - Verifications in API Server for VN ctest-vn-91323444 passed
2025-04-09 12:30:57,700 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33
2025-04-09 12:30:57,712 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc
2025-04-09 12:30:57,720 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc
2025-04-09 12:30:57,728 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d7632dec-888c-4edf-86d6-30125a5d8f66
2025-04-09 12:30:57,740 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95445227', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17449618980251583570', 'uuid-lslong': '12521175228610988595'}, 'enable': 'true', 'created': '2025-04-09T12:30:55', 'last-modified': '2025-04-09T12:30:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971087'}
2025-04-09 12:30:57,746 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 12:30:57,747 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91323444 passed
2025-04-09 12:30:57,747 - DEBUG - ====Verifying policy data for ctest-vn-91323444 in API_Server ======
2025-04-09 12:30:57,747 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-09 12:30:57,753 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d
2025-04-09 12:30:57,767 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599
2025-04-09 12:30:57,841 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33
2025-04-09 12:30:57,851 - DEBUG - ==>Verifying data for policy with id: 5de2a0c3-4ca8-4a3d-a202-4f4705839015, fqn: ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-policy-allow-all-36210063']
2025-04-09 12:30:57,852 - INFO - VN ctest-vn-91323444 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 12:30:57,852 - DEBUG - Verifying the vn in opserver
2025-04-09 12:30:57,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444 virtual network link through opserver 10.0.0.50
2025-04-09 12:30:57,852 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-09 12:30:58,143 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-09 12:30:58,205 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444?flat'}
2025-04-09 12:30:58,205 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444 is found in opserver
2025-04-09 12:30:58,219 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 12:30:58,225 - DEBUG - VRF ids for VN ctest-vn-91323444: {}
2025-04-09 12:30:58,225 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-09 12:30:58,231 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d
2025-04-09 12:30:58,244 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599
2025-04-09 12:30:58,323 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d
2025-04-09 12:30:58,335 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d
2025-04-09 12:30:58,346 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019
2025-04-09 12:30:58,354 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019
2025-04-09 12:30:58,363 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ab0a8537-2af5-42e6-aa66-53b6d051ef2d
2025-04-09 12:30:58,370 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 12:30:58,371 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d
2025-04-09 12:30:58,381 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019
2025-04-09 12:30:58,397 - INFO - Verified VN network id 10 for VN 82324401-c7ff-4d81-aa35-5030be36154d
2025-04-09 12:30:58,397 - INFO - Verifications in API Server for VN ctest-vn-02554010 passed
2025-04-09 12:30:58,397 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d
2025-04-09 12:30:58,409 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019
2025-04-09 12:30:58,417 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019
2025-04-09 12:30:58,426 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ab0a8537-2af5-42e6-aa66-53b6d051ef2d
2025-04-09 12:30:58,439 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95445227', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9381635748207218049', 'uuid-lslong': '12264797330493281613'}, 'enable': 'true', 'created': '2025-04-09T12:30:56', 'last-modified': '2025-04-09T12:30:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438759'}
2025-04-09 12:30:58,446 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 12:30:58,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02554010 passed
2025-04-09 12:30:58,446 - DEBUG - ====Verifying policy data for ctest-vn-02554010 in API_Server ======
2025-04-09 12:30:58,446 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-09 12:30:58,453 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d
2025-04-09 12:30:58,465 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599
2025-04-09 12:30:58,541 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d
2025-04-09 12:30:58,551 - DEBUG - ==>Verifying data for policy with id: 5de2a0c3-4ca8-4a3d-a202-4f4705839015, fqn: ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-policy-allow-all-36210063']
2025-04-09 12:30:58,551 - INFO - VN ctest-vn-02554010 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 12:30:58,551 - DEBUG - Verifying the vn in opserver
2025-04-09 12:30:58,551 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010 virtual network link through opserver 10.0.0.50
2025-04-09 12:30:58,551 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-09 12:30:58,562 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010?flat'}
2025-04-09 12:30:58,562 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010 is found in opserver
2025-04-09 12:30:58,573 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 12:30:58,578 - DEBUG - VRF ids for VN ctest-vn-02554010: {}
2025-04-09 12:30:58,634 - DEBUG - Services list from nova: [