2025-01-15 17:35:40,671 - INFO - Domain Default found not creating
2025-01-15 17:35:40,808 - INFO - Project ctest-TestBasicPolicy-36334453 not found, creating it
2025-01-15 17:35:41,261 - INFO - Created Project:ctest-TestBasicPolicy-36334453, ID : 59591ea2-f492-4b1f-85a4-1899bb3e4b93
2025-01-15 17:35:42,657 - INFO - ================================================================================
2025-01-15 17:35:42,657 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 17:35:42,657 - 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-15 17:35:42,912 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.5': '0'}} with
2025-01-15 17:35:42,912 - INFO - Initial checks done. Running the testcase now
2025-01-15 17:35:42,912 - INFO -
2025-01-15 17:35:43,461 - DEBUG - Response for create_network : {'network': {'id': '7a56ff2a-d4f1-455a-8752-f4271aa13684', 'name': 'ctest-vn-43251735', 'tenant_id': '59591ea2f4924b1f85a41899bb3e4b93', 'project_id': '59591ea2f4924b1f85a41899bb3e4b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36334453', 'ctest-vn-43251735'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 17:35:43,633 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee41a3fa-f996-4ad4-9fa2-7fa731951213', 'name': '', 'tenant_id': '59591ea2f4924b1f85a41899bb3e4b93', 'network_id': '7a56ff2a-d4f1-455a-8752-f4271aa13684', 'ip_version': 4, 'cidr': '169.95.97.0/26', 'allocation_pools': [{'start': '169.95.97.2', 'end': '169.95.97.62'}], 'gateway_ip': '169.95.97.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.95.97.2', 'tags': [], 'project_id': '59591ea2f4924b1f85a41899bb3e4b93'}}
2025-01-15 17:35:43,652 - INFO - Created VN ctest-vn-43251735
2025-01-15 17:35:43,704 - DEBUG - VN ctest-vn-43251735 UUID is 7a56ff2a-d4f1-455a-8752-f4271aa13684
2025-01-15 17:35:44,000 - DEBUG - Response for create_network : {'network': {'id': '6e0bdc72-0d9a-4a7a-bdc0-69415a617737', 'name': 'ctest-vn-58368110', 'tenant_id': '59591ea2f4924b1f85a41899bb3e4b93', 'project_id': '59591ea2f4924b1f85a41899bb3e4b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36334453', 'ctest-vn-58368110'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 17:35:44,191 - DEBUG - Response for create_subnet : {'subnet': {'id': '20d8f571-f02f-45d7-8833-4468366f1d5e', 'name': '', 'tenant_id': '59591ea2f4924b1f85a41899bb3e4b93', 'network_id': '6e0bdc72-0d9a-4a7a-bdc0-69415a617737', 'ip_version': 4, 'cidr': '70.171.56.64/26', 'allocation_pools': [{'start': '70.171.56.66', 'end': '70.171.56.126'}], 'gateway_ip': '70.171.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.171.56.66', 'tags': [], 'project_id': '59591ea2f4924b1f85a41899bb3e4b93'}}
2025-01-15 17:35:44,207 - INFO - Created VN ctest-vn-58368110
2025-01-15 17:35:44,260 - DEBUG - VN ctest-vn-58368110 UUID is 6e0bdc72-0d9a-4a7a-bdc0-69415a617737
2025-01-15 17:35:44,408 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-43251735, 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-36334453:ctest-vn-58368110, 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-15 17:35:44,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a56ff2a-d4f1-455a-8752-f4271aa13684', 'name': 'ctest-vn-43251735', 'tenant_id': '59591ea2f4924b1f85a41899bb3e4b93', 'project_id': '59591ea2f4924b1f85a41899bb3e4b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee41a3fa-f996-4ad4-9fa2-7fa731951213'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36334453', 'ctest-vn-43251735'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36334453', 'ctest-policy-allow-all-71251105']], 'subnet_ipam': [{'subnet_cidr': '169.95.97.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 17:35:44,924 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e0bdc72-0d9a-4a7a-bdc0-69415a617737', 'name': 'ctest-vn-58368110', 'tenant_id': '59591ea2f4924b1f85a41899bb3e4b93', 'project_id': '59591ea2f4924b1f85a41899bb3e4b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20d8f571-f02f-45d7-8833-4468366f1d5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36334453', 'ctest-vn-58368110'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36334453', 'ctest-policy-allow-all-71251105']], 'subnet_ipam': [{'subnet_cidr': '70.171.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 17:35:45,084 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-15 17:35:45,376 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-15 17:35:45,409 - DEBUG - Requesting: http://10.0.0.31:8082/domain/4329c394-325b-40df-8763-b19b6472811a
2025-01-15 17:35:45,424 - DEBUG - Requesting: http://10.0.0.31:8082/project/59591ea2-f492-4b1f-85a4-1899bb3e4b93
2025-01-15 17:35:45,497 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a56ff2a-d4f1-455a-8752-f4271aa13684
2025-01-15 17:35:45,509 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a56ff2a-d4f1-455a-8752-f4271aa13684
2025-01-15 17:35:45,518 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b18162b6-f111-4182-b8cb-66986032b2eb
2025-01-15 17:35:45,525 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b18162b6-f111-4182-b8cb-66986032b2eb
2025-01-15 17:35:45,531 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/7fbde974-10ac-4bf5-ba12-cf2a6604d4dc
2025-01-15 17:35:45,537 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 17:35:45,537 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a56ff2a-d4f1-455a-8752-f4271aa13684
2025-01-15 17:35:45,545 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b18162b6-f111-4182-b8cb-66986032b2eb
2025-01-15 17:35:45,559 - INFO - Verified VN network id 8 for VN 7a56ff2a-d4f1-455a-8752-f4271aa13684
2025-01-15 17:35:45,559 - INFO - Verifications in API Server for VN ctest-vn-43251735 passed
2025-01-15 17:35:45,559 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a56ff2a-d4f1-455a-8752-f4271aa13684
2025-01-15 17:35:45,568 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b18162b6-f111-4182-b8cb-66986032b2eb
2025-01-15 17:35:45,574 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b18162b6-f111-4182-b8cb-66986032b2eb
2025-01-15 17:35:45,581 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/7fbde974-10ac-4bf5-ba12-cf2a6604d4dc
2025-01-15 17:35:45,594 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-43251735', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36334453', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8815513880050615642', 'uuid-lslong': '9751124591998219908'}, 'enable': 'true', 'created': '2025-01-15T17:35:43', 'last-modified': '2025-01-15T17:35:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918466'}
2025-01-15 17:35:45,600 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 17:35:45,600 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43251735 passed
2025-01-15 17:35:45,600 - DEBUG - ====Verifying policy data for ctest-vn-43251735 in API_Server ======
2025-01-15 17:35:45,600 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-15 17:35:45,606 - DEBUG - Requesting: http://10.0.0.31:8082/domain/4329c394-325b-40df-8763-b19b6472811a
2025-01-15 17:35:45,617 - DEBUG - Requesting: http://10.0.0.31:8082/project/59591ea2-f492-4b1f-85a4-1899bb3e4b93
2025-01-15 17:35:45,689 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a56ff2a-d4f1-455a-8752-f4271aa13684
2025-01-15 17:35:45,700 - DEBUG - ==>Verifying data for policy with id: b48c0ba6-7bf7-4395-ad1c-eca0abe4f1f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-36334453', 'ctest-policy-allow-all-71251105']
2025-01-15 17:35:45,700 - INFO - VN ctest-vn-43251735 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 17:35:45,700 - DEBUG - Verifying the vn in opserver
2025-01-15 17:35:45,700 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-43251735 virtual network link through opserver 10.0.0.31
2025-01-15 17:35:45,700 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-15 17:35:45,998 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-15 17:35:46,064 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-43251735', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-43251735?flat'}
2025-01-15 17:35:46,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-43251735 is found in opserver
2025-01-15 17:35:46,076 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 17:35:46,081 - DEBUG - VRF ids for VN ctest-vn-43251735: {}
2025-01-15 17:35:46,081 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-15 17:35:46,087 - DEBUG - Requesting: http://10.0.0.31:8082/domain/4329c394-325b-40df-8763-b19b6472811a
2025-01-15 17:35:46,098 - DEBUG - Requesting: http://10.0.0.31:8082/project/59591ea2-f492-4b1f-85a4-1899bb3e4b93
2025-01-15 17:35:46,166 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/6e0bdc72-0d9a-4a7a-bdc0-69415a617737
2025-01-15 17:35:46,177 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/6e0bdc72-0d9a-4a7a-bdc0-69415a617737
2025-01-15 17:35:46,186 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/34919bd9-8ea8-4bef-a6bd-f22d042826fd
2025-01-15 17:35:46,193 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/34919bd9-8ea8-4bef-a6bd-f22d042826fd
2025-01-15 17:35:46,199 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/e7bf1fc2-1490-4607-aa1a-b60c2c7a53d3
2025-01-15 17:35:46,205 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 17:35:46,205 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/6e0bdc72-0d9a-4a7a-bdc0-69415a617737
2025-01-15 17:35:46,214 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/34919bd9-8ea8-4bef-a6bd-f22d042826fd
2025-01-15 17:35:46,230 - INFO - Verified VN network id 9 for VN 6e0bdc72-0d9a-4a7a-bdc0-69415a617737
2025-01-15 17:35:46,231 - INFO - Verifications in API Server for VN ctest-vn-58368110 passed
2025-01-15 17:35:46,231 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/6e0bdc72-0d9a-4a7a-bdc0-69415a617737
2025-01-15 17:35:46,242 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/34919bd9-8ea8-4bef-a6bd-f22d042826fd
2025-01-15 17:35:46,249 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/34919bd9-8ea8-4bef-a6bd-f22d042826fd
2025-01-15 17:35:46,255 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/e7bf1fc2-1490-4607-aa1a-b60c2c7a53d3
2025-01-15 17:35:46,266 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-58368110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36334453', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7929673951328488058', 'uuid-lslong': '13673044198106953527'}, 'enable': 'true', 'created': '2025-01-15T17:35:43', 'last-modified': '2025-01-15T17:35:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361895'}
2025-01-15 17:35:46,272 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 17:35:46,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58368110 passed
2025-01-15 17:35:46,272 - DEBUG - ====Verifying policy data for ctest-vn-58368110 in API_Server ======
2025-01-15 17:35:46,273 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-15 17:35:46,277 - DEBUG - Requesting: http://10.0.0.31:8082/domain/4329c394-325b-40df-8763-b19b6472811a
2025-01-15 17:35:46,288 - DEBUG - Requesting: http://10.0.0.31:8082/project/59591ea2-f492-4b1f-85a4-1899bb3e4b93
2025-01-15 17:35:46,357 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/6e0bdc72-0d9a-4a7a-bdc0-69415a617737
2025-01-15 17:35:46,366 - DEBUG - ==>Verifying data for policy with id: b48c0ba6-7bf7-4395-ad1c-eca0abe4f1f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-36334453', 'ctest-policy-allow-all-71251105']
2025-01-15 17:35:46,366 - INFO - VN ctest-vn-58368110 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 17:35:46,366 - DEBUG - Verifying the vn in opserver
2025-01-15 17:35:46,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-58368110 virtual network link through opserver 10.0.0.31
2025-01-15 17:35:46,366 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-15 17:35:46,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-58368110', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-58368110?flat'}
2025-01-15 17:35:46,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36334453:ctest-vn-58368110 is found in opserver
2025-01-15 17:35:46,385 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 17:35:46,390 - DEBUG - VRF ids for VN ctest-vn-58368110: {}
2025-01-15 17:35:46,439 - DEBUG - Services list from nova: [