2025-08-31 02:34:32,511 - INFO - Domain Default found not creating
2025-08-31 02:34:32,635 - INFO - Project ctest-TestBasicPolicy-77915727 not found, creating it
2025-08-31 02:34:33,059 - INFO - Created Project:ctest-TestBasicPolicy-77915727, ID : 21b747e7-c52a-44f7-8399-57db31c60a2b
2025-08-31 02:34:34,468 - INFO - ================================================================================
2025-08-31 02:34:34,468 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-31 02:34:34,468 - 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-08-31 02:34:34,726 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-08-31 02:34:34,726 - INFO - Initial checks done. Running the testcase now
2025-08-31 02:34:34,726 - INFO -
2025-08-31 02:34:35,282 - DEBUG - Response for create_network : {'network': {'id': '1c4a57e9-e828-4380-abdd-c7ea795ddae0', 'name': 'ctest-vn-49316814', 'tenant_id': '21b747e7c52a44f7839957db31c60a2b', 'project_id': '21b747e7c52a44f7839957db31c60a2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77915727', 'ctest-vn-49316814'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 02:34:35,466 - DEBUG - Response for create_subnet : {'subnet': {'id': '25ecbbc2-faa5-46b1-9d6d-1d5850d3e041', 'name': '', 'tenant_id': '21b747e7c52a44f7839957db31c60a2b', 'network_id': '1c4a57e9-e828-4380-abdd-c7ea795ddae0', 'ip_version': 4, 'cidr': '6.93.109.64/26', 'allocation_pools': [{'start': '6.93.109.66', 'end': '6.93.109.126'}], 'gateway_ip': '6.93.109.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.93.109.66', 'tags': [], 'project_id': '21b747e7c52a44f7839957db31c60a2b'}}
2025-08-31 02:34:35,487 - INFO - Created VN ctest-vn-49316814
2025-08-31 02:34:35,542 - DEBUG - VN ctest-vn-49316814 UUID is 1c4a57e9-e828-4380-abdd-c7ea795ddae0
2025-08-31 02:34:35,880 - DEBUG - Response for create_network : {'network': {'id': 'c12afb68-4c3a-4bb5-aa2b-ebfff5f87480', 'name': 'ctest-vn-36173235', 'tenant_id': '21b747e7c52a44f7839957db31c60a2b', 'project_id': '21b747e7c52a44f7839957db31c60a2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77915727', 'ctest-vn-36173235'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 02:34:36,058 - DEBUG - Response for create_subnet : {'subnet': {'id': '5dd6e13c-e161-4305-b72d-0794a4144c0b', 'name': '', 'tenant_id': '21b747e7c52a44f7839957db31c60a2b', 'network_id': 'c12afb68-4c3a-4bb5-aa2b-ebfff5f87480', 'ip_version': 4, 'cidr': '122.213.2.64/26', 'allocation_pools': [{'start': '122.213.2.66', 'end': '122.213.2.126'}], 'gateway_ip': '122.213.2.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.213.2.66', 'tags': [], 'project_id': '21b747e7c52a44f7839957db31c60a2b'}}
2025-08-31 02:34:36,072 - INFO - Created VN ctest-vn-36173235
2025-08-31 02:34:36,122 - DEBUG - VN ctest-vn-36173235 UUID is c12afb68-4c3a-4bb5-aa2b-ebfff5f87480
2025-08-31 02:34:36,235 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-49316814, 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-77915727:ctest-vn-36173235, 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-08-31 02:34:36,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c4a57e9-e828-4380-abdd-c7ea795ddae0', 'name': 'ctest-vn-49316814', 'tenant_id': '21b747e7c52a44f7839957db31c60a2b', 'project_id': '21b747e7c52a44f7839957db31c60a2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25ecbbc2-faa5-46b1-9d6d-1d5850d3e041'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77915727', 'ctest-vn-49316814'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77915727', 'ctest-policy-allow-all-00472208']], 'subnet_ipam': [{'subnet_cidr': '6.93.109.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 02:34:36,879 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c12afb68-4c3a-4bb5-aa2b-ebfff5f87480', 'name': 'ctest-vn-36173235', 'tenant_id': '21b747e7c52a44f7839957db31c60a2b', 'project_id': '21b747e7c52a44f7839957db31c60a2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5dd6e13c-e161-4305-b72d-0794a4144c0b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77915727', 'ctest-vn-36173235'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77915727', 'ctest-policy-allow-all-00472208']], 'subnet_ipam': [{'subnet_cidr': '122.213.2.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 02:34:37,070 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 02:34:37,392 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 02:34:37,425 - DEBUG - Requesting: http://10.0.0.50:8082/domain/70d7e6a2-f546-44a0-8971-885b2793ec9a
2025-08-31 02:34:37,445 - DEBUG - Requesting: http://10.0.0.50:8082/project/21b747e7-c52a-44f7-8399-57db31c60a2b
2025-08-31 02:34:37,516 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4a57e9-e828-4380-abdd-c7ea795ddae0
2025-08-31 02:34:37,524 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4a57e9-e828-4380-abdd-c7ea795ddae0
2025-08-31 02:34:37,531 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d5d21d0-1d55-4d69-965b-e8be7c1d2427
2025-08-31 02:34:37,537 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d5d21d0-1d55-4d69-965b-e8be7c1d2427
2025-08-31 02:34:37,542 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/972534c5-4755-4158-89c2-63b52890a266
2025-08-31 02:34:37,547 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 02:34:37,547 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4a57e9-e828-4380-abdd-c7ea795ddae0
2025-08-31 02:34:37,554 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d5d21d0-1d55-4d69-965b-e8be7c1d2427
2025-08-31 02:34:37,566 - INFO - Verified VN network id 12 for VN 1c4a57e9-e828-4380-abdd-c7ea795ddae0
2025-08-31 02:34:37,566 - INFO - Verifications in API Server for VN ctest-vn-49316814 passed
2025-08-31 02:34:37,566 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4a57e9-e828-4380-abdd-c7ea795ddae0
2025-08-31 02:34:37,573 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d5d21d0-1d55-4d69-965b-e8be7c1d2427
2025-08-31 02:34:37,578 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d5d21d0-1d55-4d69-965b-e8be7c1d2427
2025-08-31 02:34:37,583 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/972534c5-4755-4158-89c2-63b52890a266
2025-08-31 02:34:37,592 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-49316814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77915727', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2038538443472520064', 'uuid-lslong': '12384274360211200736'}, 'enable': 'true', 'created': '2025-08-31T02:34:35', 'last-modified': '2025-08-31T02:34:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.083047'}
2025-08-31 02:34:37,597 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 02:34:37,597 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49316814 passed
2025-08-31 02:34:37,597 - DEBUG - ====Verifying policy data for ctest-vn-49316814 in API_Server ======
2025-08-31 02:34:37,597 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 02:34:37,601 - DEBUG - Requesting: http://10.0.0.50:8082/domain/70d7e6a2-f546-44a0-8971-885b2793ec9a
2025-08-31 02:34:37,609 - DEBUG - Requesting: http://10.0.0.50:8082/project/21b747e7-c52a-44f7-8399-57db31c60a2b
2025-08-31 02:34:37,676 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4a57e9-e828-4380-abdd-c7ea795ddae0
2025-08-31 02:34:37,684 - DEBUG - ==>Verifying data for policy with id: 8cb10fca-a41e-4584-af0b-69aa63b23577, fqn: ['default-domain', 'ctest-TestBasicPolicy-77915727', 'ctest-policy-allow-all-00472208']
2025-08-31 02:34:37,684 - INFO - VN ctest-vn-49316814 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 02:34:37,685 - DEBUG - Verifying the vn in opserver
2025-08-31 02:34:37,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-49316814 virtual network link through opserver 10.0.0.50
2025-08-31 02:34:37,685 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-31 02:34:37,973 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-31 02:34:38,020 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-49316814', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-49316814?flat'}
2025-08-31 02:34:38,020 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-49316814 is found in opserver
2025-08-31 02:34:38,029 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 02:34:38,033 - DEBUG - VRF ids for VN ctest-vn-49316814: {}
2025-08-31 02:34:38,033 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 02:34:38,038 - DEBUG - Requesting: http://10.0.0.50:8082/domain/70d7e6a2-f546-44a0-8971-885b2793ec9a
2025-08-31 02:34:38,047 - DEBUG - Requesting: http://10.0.0.50:8082/project/21b747e7-c52a-44f7-8399-57db31c60a2b
2025-08-31 02:34:38,111 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c12afb68-4c3a-4bb5-aa2b-ebfff5f87480
2025-08-31 02:34:38,122 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c12afb68-4c3a-4bb5-aa2b-ebfff5f87480
2025-08-31 02:34:38,129 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e56ea5dd-3cd3-4a10-a0c6-2c7f872c0e27
2025-08-31 02:34:38,135 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e56ea5dd-3cd3-4a10-a0c6-2c7f872c0e27
2025-08-31 02:34:38,140 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/546ddae9-a3cc-434d-aa40-2c498e5a224a
2025-08-31 02:34:38,145 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 02:34:38,145 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c12afb68-4c3a-4bb5-aa2b-ebfff5f87480
2025-08-31 02:34:38,153 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e56ea5dd-3cd3-4a10-a0c6-2c7f872c0e27
2025-08-31 02:34:38,163 - INFO - Verified VN network id 13 for VN c12afb68-4c3a-4bb5-aa2b-ebfff5f87480
2025-08-31 02:34:38,163 - INFO - Verifications in API Server for VN ctest-vn-36173235 passed
2025-08-31 02:34:38,163 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c12afb68-4c3a-4bb5-aa2b-ebfff5f87480
2025-08-31 02:34:38,170 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e56ea5dd-3cd3-4a10-a0c6-2c7f872c0e27
2025-08-31 02:34:38,175 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e56ea5dd-3cd3-4a10-a0c6-2c7f872c0e27
2025-08-31 02:34:38,180 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/546ddae9-a3cc-434d-aa40-2c498e5a224a
2025-08-31 02:34:38,190 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-36173235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77915727', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13919214023715998645', 'uuid-lslong': '12262153895022195840'}, 'enable': 'true', 'created': '2025-08-31T02:34:35', 'last-modified': '2025-08-31T02:34:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.366861'}
2025-08-31 02:34:38,194 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 02:34:38,194 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36173235 passed
2025-08-31 02:34:38,195 - DEBUG - ====Verifying policy data for ctest-vn-36173235 in API_Server ======
2025-08-31 02:34:38,195 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 02:34:38,199 - DEBUG - Requesting: http://10.0.0.50:8082/domain/70d7e6a2-f546-44a0-8971-885b2793ec9a
2025-08-31 02:34:38,208 - DEBUG - Requesting: http://10.0.0.50:8082/project/21b747e7-c52a-44f7-8399-57db31c60a2b
2025-08-31 02:34:38,274 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c12afb68-4c3a-4bb5-aa2b-ebfff5f87480
2025-08-31 02:34:38,282 - DEBUG - ==>Verifying data for policy with id: 8cb10fca-a41e-4584-af0b-69aa63b23577, fqn: ['default-domain', 'ctest-TestBasicPolicy-77915727', 'ctest-policy-allow-all-00472208']
2025-08-31 02:34:38,282 - INFO - VN ctest-vn-36173235 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 02:34:38,282 - DEBUG - Verifying the vn in opserver
2025-08-31 02:34:38,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-36173235 virtual network link through opserver 10.0.0.50
2025-08-31 02:34:38,282 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-31 02:34:38,290 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-36173235', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-36173235?flat'}
2025-08-31 02:34:38,290 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77915727:ctest-vn-36173235 is found in opserver
2025-08-31 02:34:38,299 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 02:34:38,304 - DEBUG - VRF ids for VN ctest-vn-36173235: {}
2025-08-31 02:34:38,356 - DEBUG - Services list from nova: [