2025-01-01 22:26:32,994 - INFO - Domain Default found not creating
2025-01-01 22:26:33,126 - INFO - Project ctest-TestBasicPolicy-99416813 not found, creating it
2025-01-01 22:26:33,579 - INFO - Created Project:ctest-TestBasicPolicy-99416813, ID : 86338af8-84d4-4afd-a433-dbac5e7cb6d0
2025-01-01 22:26:35,092 - INFO - ================================================================================
2025-01-01 22:26:35,093 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-01 22:26:35,093 - 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-01-01 22:26:35,347 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.32': '0'}} with
2025-01-01 22:26:35,347 - INFO - Initial checks done. Running the testcase now
2025-01-01 22:26:35,347 - INFO -
2025-01-01 22:26:35,913 - DEBUG - Response for create_network : {'network': {'id': '7cb72fb5-fee4-4a13-8238-9ee0d0ecf493', 'name': 'ctest-vn-18510640', 'tenant_id': '86338af884d44afda433dbac5e7cb6d0', 'project_id': '86338af884d44afda433dbac5e7cb6d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99416813', 'ctest-vn-18510640'], 'port_security_enabled': True, 'description': ''}}
2025-01-01 22:26:36,132 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b050da4f-1a92-448e-875b-dbd4010407c1', 'name': '', 'tenant_id': '86338af884d44afda433dbac5e7cb6d0', 'network_id': '7cb72fb5-fee4-4a13-8238-9ee0d0ecf493', 'ip_version': 4, 'cidr': '130.1.193.0/26', 'allocation_pools': [{'start': '130.1.193.2', 'end': '130.1.193.62'}], 'gateway_ip': '130.1.193.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.1.193.2', 'tags': [], 'project_id': '86338af884d44afda433dbac5e7cb6d0'}}
2025-01-01 22:26:36,150 - INFO - Created VN ctest-vn-18510640
2025-01-01 22:26:36,204 - DEBUG - VN ctest-vn-18510640 UUID is 7cb72fb5-fee4-4a13-8238-9ee0d0ecf493
2025-01-01 22:26:36,528 - DEBUG - Response for create_network : {'network': {'id': 'dad7422d-f413-4511-a471-79546d785fc8', 'name': 'ctest-vn-93060871', 'tenant_id': '86338af884d44afda433dbac5e7cb6d0', 'project_id': '86338af884d44afda433dbac5e7cb6d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99416813', 'ctest-vn-93060871'], 'port_security_enabled': True, 'description': ''}}
2025-01-01 22:26:36,669 - DEBUG - Response for create_subnet : {'subnet': {'id': '4dcda7fc-9be6-4232-a3be-c417027bdf0c', 'name': '', 'tenant_id': '86338af884d44afda433dbac5e7cb6d0', 'network_id': 'dad7422d-f413-4511-a471-79546d785fc8', 'ip_version': 4, 'cidr': '53.68.69.128/26', 'allocation_pools': [{'start': '53.68.69.130', 'end': '53.68.69.190'}], 'gateway_ip': '53.68.69.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.68.69.130', 'tags': [], 'project_id': '86338af884d44afda433dbac5e7cb6d0'}}
2025-01-01 22:26:36,687 - INFO - Created VN ctest-vn-93060871
2025-01-01 22:26:36,740 - DEBUG - VN ctest-vn-93060871 UUID is dad7422d-f413-4511-a471-79546d785fc8
2025-01-01 22:26:36,892 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-18510640, 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-99416813:ctest-vn-93060871, 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-01-01 22:26:37,190 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cb72fb5-fee4-4a13-8238-9ee0d0ecf493', 'name': 'ctest-vn-18510640', 'tenant_id': '86338af884d44afda433dbac5e7cb6d0', 'project_id': '86338af884d44afda433dbac5e7cb6d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b050da4f-1a92-448e-875b-dbd4010407c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99416813', 'ctest-vn-18510640'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99416813', 'ctest-policy-allow-all-94469864']], 'subnet_ipam': [{'subnet_cidr': '130.1.193.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-01 22:26:37,423 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dad7422d-f413-4511-a471-79546d785fc8', 'name': 'ctest-vn-93060871', 'tenant_id': '86338af884d44afda433dbac5e7cb6d0', 'project_id': '86338af884d44afda433dbac5e7cb6d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4dcda7fc-9be6-4232-a3be-c417027bdf0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99416813', 'ctest-vn-93060871'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99416813', 'ctest-policy-allow-all-94469864']], 'subnet_ipam': [{'subnet_cidr': '53.68.69.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-01 22:26:37,592 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-01 22:26:37,930 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-01 22:26:37,957 - DEBUG - Requesting: http://10.0.0.34:8082/domain/e1cacb4f-ebcd-426a-8de0-44595684bc30
2025-01-01 22:26:37,970 - DEBUG - Requesting: http://10.0.0.34:8082/project/86338af8-84d4-4afd-a433-dbac5e7cb6d0
2025-01-01 22:26:38,044 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7cb72fb5-fee4-4a13-8238-9ee0d0ecf493
2025-01-01 22:26:38,055 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7cb72fb5-fee4-4a13-8238-9ee0d0ecf493
2025-01-01 22:26:38,064 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/75576f33-74e6-4c1d-a83d-a6e8c62af71e
2025-01-01 22:26:38,071 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/75576f33-74e6-4c1d-a83d-a6e8c62af71e
2025-01-01 22:26:38,077 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/57349cd9-1208-49a0-96cb-fc64d67a828c
2025-01-01 22:26:38,083 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-01 22:26:38,083 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7cb72fb5-fee4-4a13-8238-9ee0d0ecf493
2025-01-01 22:26:38,092 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/75576f33-74e6-4c1d-a83d-a6e8c62af71e
2025-01-01 22:26:38,105 - INFO - Verified VN network id 8 for VN 7cb72fb5-fee4-4a13-8238-9ee0d0ecf493
2025-01-01 22:26:38,105 - INFO - Verifications in API Server for VN ctest-vn-18510640 passed
2025-01-01 22:26:38,105 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7cb72fb5-fee4-4a13-8238-9ee0d0ecf493
2025-01-01 22:26:38,115 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/75576f33-74e6-4c1d-a83d-a6e8c62af71e
2025-01-01 22:26:38,122 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/75576f33-74e6-4c1d-a83d-a6e8c62af71e
2025-01-01 22:26:38,128 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/57349cd9-1208-49a0-96cb-fc64d67a828c
2025-01-01 22:26:38,140 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-18510640', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99416813', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8986704040153074195', 'uuid-lslong': '9383424512041481363'}, 'enable': 'true', 'created': '2025-01-01T22:26:35', 'last-modified': '2025-01-01T22:26:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978828'}
2025-01-01 22:26:38,146 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-01 22:26:38,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18510640 passed
2025-01-01 22:26:38,147 - DEBUG - ====Verifying policy data for ctest-vn-18510640 in API_Server ======
2025-01-01 22:26:38,147 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-01 22:26:38,152 - DEBUG - Requesting: http://10.0.0.34:8082/domain/e1cacb4f-ebcd-426a-8de0-44595684bc30
2025-01-01 22:26:38,163 - DEBUG - Requesting: http://10.0.0.34:8082/project/86338af8-84d4-4afd-a433-dbac5e7cb6d0
2025-01-01 22:26:38,244 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7cb72fb5-fee4-4a13-8238-9ee0d0ecf493
2025-01-01 22:26:38,257 - DEBUG - ==>Verifying data for policy with id: 2fa3a98b-f32f-4cc5-b266-07ce46e96c37, fqn: ['default-domain', 'ctest-TestBasicPolicy-99416813', 'ctest-policy-allow-all-94469864']
2025-01-01 22:26:38,257 - INFO - VN ctest-vn-18510640 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-01 22:26:38,257 - DEBUG - Verifying the vn in opserver
2025-01-01 22:26:38,257 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-18510640 virtual network link through opserver 10.0.0.34
2025-01-01 22:26:38,257 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-01 22:26:38,588 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-01 22:26:38,640 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-18510640', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-18510640?flat'}
2025-01-01 22:26:38,640 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-18510640 is found in opserver
2025-01-01 22:26:38,653 - DEBUG - Do not have enough data to verify VN in agent
2025-01-01 22:26:38,659 - DEBUG - VRF ids for VN ctest-vn-18510640: {}
2025-01-01 22:26:38,659 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-01 22:26:38,665 - DEBUG - Requesting: http://10.0.0.34:8082/domain/e1cacb4f-ebcd-426a-8de0-44595684bc30
2025-01-01 22:26:38,676 - DEBUG - Requesting: http://10.0.0.34:8082/project/86338af8-84d4-4afd-a433-dbac5e7cb6d0
2025-01-01 22:26:38,750 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/dad7422d-f413-4511-a471-79546d785fc8
2025-01-01 22:26:38,762 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/dad7422d-f413-4511-a471-79546d785fc8
2025-01-01 22:26:38,771 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed2f78fb-596a-4625-ac99-c48422a1d041
2025-01-01 22:26:38,778 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed2f78fb-596a-4625-ac99-c48422a1d041
2025-01-01 22:26:38,784 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/aa2bb9a3-3192-491a-9b12-d70c988f7ba6
2025-01-01 22:26:38,790 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-01 22:26:38,790 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/dad7422d-f413-4511-a471-79546d785fc8
2025-01-01 22:26:38,799 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed2f78fb-596a-4625-ac99-c48422a1d041
2025-01-01 22:26:38,812 - INFO - Verified VN network id 9 for VN dad7422d-f413-4511-a471-79546d785fc8
2025-01-01 22:26:38,812 - INFO - Verifications in API Server for VN ctest-vn-93060871 passed
2025-01-01 22:26:38,812 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/dad7422d-f413-4511-a471-79546d785fc8
2025-01-01 22:26:38,822 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed2f78fb-596a-4625-ac99-c48422a1d041
2025-01-01 22:26:38,828 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed2f78fb-596a-4625-ac99-c48422a1d041
2025-01-01 22:26:38,835 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/aa2bb9a3-3192-491a-9b12-d70c988f7ba6
2025-01-01 22:26:38,848 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-93060871', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99416813', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15769145385396946193', 'uuid-lslong': '11849385498109304776'}, 'enable': 'true', 'created': '2025-01-01T22:26:36', 'last-modified': '2025-01-01T22:26:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.451586'}
2025-01-01 22:26:38,854 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-01 22:26:38,854 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93060871 passed
2025-01-01 22:26:38,854 - DEBUG - ====Verifying policy data for ctest-vn-93060871 in API_Server ======
2025-01-01 22:26:38,854 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-01 22:26:38,859 - DEBUG - Requesting: http://10.0.0.34:8082/domain/e1cacb4f-ebcd-426a-8de0-44595684bc30
2025-01-01 22:26:38,870 - DEBUG - Requesting: http://10.0.0.34:8082/project/86338af8-84d4-4afd-a433-dbac5e7cb6d0
2025-01-01 22:26:38,944 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/dad7422d-f413-4511-a471-79546d785fc8
2025-01-01 22:26:38,954 - DEBUG - ==>Verifying data for policy with id: 2fa3a98b-f32f-4cc5-b266-07ce46e96c37, fqn: ['default-domain', 'ctest-TestBasicPolicy-99416813', 'ctest-policy-allow-all-94469864']
2025-01-01 22:26:38,954 - INFO - VN ctest-vn-93060871 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-01 22:26:38,954 - DEBUG - Verifying the vn in opserver
2025-01-01 22:26:38,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-93060871 virtual network link through opserver 10.0.0.34
2025-01-01 22:26:38,954 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-01 22:26:38,963 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-93060871', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-93060871?flat'}
2025-01-01 22:26:38,963 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99416813:ctest-vn-93060871 is found in opserver
2025-01-01 22:26:38,974 - DEBUG - Do not have enough data to verify VN in agent
2025-01-01 22:26:38,979 - DEBUG - VRF ids for VN ctest-vn-93060871: {}
2025-01-01 22:26:39,032 - DEBUG - Services list from nova: [