2024-10-17 02:35:48,413 - INFO - Domain Default found not creating
2024-10-17 02:35:48,611 - INFO - Project ctest-TestBasicPolicy-58502622 not found, creating it
2024-10-17 02:35:49,130 - INFO - Created Project:ctest-TestBasicPolicy-58502622, ID : 948f9b17-4091-496d-8674-26cc811afc47
2024-10-17 02:35:50,984 - INFO - ================================================================================
2024-10-17 02:35:50,985 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-17 02:35:50,985 - 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
2024-10-17 02:35:51,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with
2024-10-17 02:35:51,245 - INFO - Initial checks done. Running the testcase now
2024-10-17 02:35:51,245 - INFO -
2024-10-17 02:35:51,902 - DEBUG - Response for create_network : {'network': {'id': '4ab60242-e326-4364-9d1e-af342c347d8b', 'name': 'ctest-vn-57754955', 'tenant_id': '948f9b174091496d867426cc811afc47', 'project_id': '948f9b174091496d867426cc811afc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-vn-57754955'], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:35:52,187 - DEBUG - Response for create_subnet : {'subnet': {'id': '043ee7bf-a8fc-498d-adf1-d3be6b7e1240', 'name': '', 'tenant_id': '948f9b174091496d867426cc811afc47', 'network_id': '4ab60242-e326-4364-9d1e-af342c347d8b', 'ip_version': 4, 'cidr': '202.204.44.192/26', 'allocation_pools': [{'start': '202.204.44.194', 'end': '202.204.44.254'}], 'gateway_ip': '202.204.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.204.44.194', 'tags': [], 'project_id': '948f9b174091496d867426cc811afc47'}}
2024-10-17 02:35:52,211 - INFO - Created VN ctest-vn-57754955
2024-10-17 02:35:52,278 - DEBUG - VN ctest-vn-57754955 UUID is 4ab60242-e326-4364-9d1e-af342c347d8b
2024-10-17 02:35:52,633 - DEBUG - Response for create_network : {'network': {'id': 'c303610b-7c2b-4941-bca3-c754c62d7855', 'name': 'ctest-vn-42338996', 'tenant_id': '948f9b174091496d867426cc811afc47', 'project_id': '948f9b174091496d867426cc811afc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-vn-42338996'], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:35:52,811 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f462760-f80f-48aa-a96c-4e0229258097', 'name': '', 'tenant_id': '948f9b174091496d867426cc811afc47', 'network_id': 'c303610b-7c2b-4941-bca3-c754c62d7855', 'ip_version': 4, 'cidr': '103.247.231.128/26', 'allocation_pools': [{'start': '103.247.231.130', 'end': '103.247.231.190'}], 'gateway_ip': '103.247.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.247.231.130', 'tags': [], 'project_id': '948f9b174091496d867426cc811afc47'}}
2024-10-17 02:35:52,837 - INFO - Created VN ctest-vn-42338996
2024-10-17 02:35:52,906 - DEBUG - VN ctest-vn-42338996 UUID is c303610b-7c2b-4941-bca3-c754c62d7855
2024-10-17 02:35:53,039 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955, 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-58502622:ctest-vn-42338996, 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]
2024-10-17 02:35:53,606 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ab60242-e326-4364-9d1e-af342c347d8b', 'name': 'ctest-vn-57754955', 'tenant_id': '948f9b174091496d867426cc811afc47', 'project_id': '948f9b174091496d867426cc811afc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['043ee7bf-a8fc-498d-adf1-d3be6b7e1240'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-vn-57754955'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-policy-allow-all-88739133']], 'subnet_ipam': [{'subnet_cidr': '202.204.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:35:53,871 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c303610b-7c2b-4941-bca3-c754c62d7855', 'name': 'ctest-vn-42338996', 'tenant_id': '948f9b174091496d867426cc811afc47', 'project_id': '948f9b174091496d867426cc811afc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f462760-f80f-48aa-a96c-4e0229258097'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-vn-42338996'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-policy-allow-all-88739133']], 'subnet_ipam': [{'subnet_cidr': '103.247.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:35:54,074 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-17 02:35:54,413 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-17 02:35:54,449 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a
2024-10-17 02:35:54,465 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47
2024-10-17 02:35:54,550 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b
2024-10-17 02:35:54,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b
2024-10-17 02:35:54,585 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607
2024-10-17 02:35:54,596 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607
2024-10-17 02:35:54,606 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e6fd7f9e-b30b-4c35-a757-5f18d89d13be
2024-10-17 02:35:54,615 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-17 02:35:54,615 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b
2024-10-17 02:35:54,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607
2024-10-17 02:35:54,652 - INFO - Verified VN network id 9 for VN 4ab60242-e326-4364-9d1e-af342c347d8b
2024-10-17 02:35:54,652 - INFO - Verifications in API Server for VN ctest-vn-57754955 passed
2024-10-17 02:35:54,653 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b
2024-10-17 02:35:54,668 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607
2024-10-17 02:35:54,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607
2024-10-17 02:35:54,688 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e6fd7f9e-b30b-4c35-a757-5f18d89d13be
2024-10-17 02:35:54,704 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58502622', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5383492890870039396', 'uuid-lslong': '11321679151870803339'}, 'enable': 'true', 'created': '2024-10-17T02:35:51', 'last-modified': '2024-10-17T02:35:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.127254'}
2024-10-17 02:35:54,711 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-17 02:35:54,711 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57754955 passed
2024-10-17 02:35:54,711 - DEBUG - ====Verifying policy data for ctest-vn-57754955 in API_Server ======
2024-10-17 02:35:54,711 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-17 02:35:54,719 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a
2024-10-17 02:35:54,737 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47
2024-10-17 02:35:54,823 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b
2024-10-17 02:35:54,842 - DEBUG - ==>Verifying data for policy with id: 3f32ee7b-6898-4fbe-9d45-9c41c92e4030, fqn: ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-policy-allow-all-88739133']
2024-10-17 02:35:54,842 - INFO - VN ctest-vn-57754955 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-17 02:35:54,842 - DEBUG - Verifying the vn in opserver
2024-10-17 02:35:54,842 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955 virtual network link through opserver 10.0.0.38
2024-10-17 02:35:54,843 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-10-17 02:35:55,183 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-10-17 02:35:55,255 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955?flat'}
2024-10-17 02:35:55,256 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955 is found in opserver
2024-10-17 02:35:55,268 - DEBUG - Do not have enough data to verify VN in agent
2024-10-17 02:35:55,274 - DEBUG - VRF ids for VN ctest-vn-57754955: {}
2024-10-17 02:35:55,274 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-17 02:35:55,281 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a
2024-10-17 02:35:55,296 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47
2024-10-17 02:35:55,406 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855
2024-10-17 02:35:55,429 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855
2024-10-17 02:35:55,445 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d
2024-10-17 02:35:55,456 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d
2024-10-17 02:35:55,466 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/22cbca54-af45-49a7-8a69-2eb80b680ef2
2024-10-17 02:35:55,474 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-17 02:35:55,474 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855
2024-10-17 02:35:55,492 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d
2024-10-17 02:35:55,520 - INFO - Verified VN network id 10 for VN c303610b-7c2b-4941-bca3-c754c62d7855
2024-10-17 02:35:55,520 - INFO - Verifications in API Server for VN ctest-vn-42338996 passed
2024-10-17 02:35:55,520 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855
2024-10-17 02:35:55,539 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d
2024-10-17 02:35:55,550 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d
2024-10-17 02:35:55,561 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/22cbca54-af45-49a7-8a69-2eb80b680ef2
2024-10-17 02:35:55,577 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58502622', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14052181964281825601', 'uuid-lslong': '13592927267250337877'}, 'enable': 'true', 'created': '2024-10-17T02:35:52', 'last-modified': '2024-10-17T02:35:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.731941'}
2024-10-17 02:35:55,584 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-17 02:35:55,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42338996 passed
2024-10-17 02:35:55,585 - DEBUG - ====Verifying policy data for ctest-vn-42338996 in API_Server ======
2024-10-17 02:35:55,585 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-17 02:35:55,592 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a
2024-10-17 02:35:55,609 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47
2024-10-17 02:35:55,694 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855
2024-10-17 02:35:55,709 - DEBUG - ==>Verifying data for policy with id: 3f32ee7b-6898-4fbe-9d45-9c41c92e4030, fqn: ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-policy-allow-all-88739133']
2024-10-17 02:35:55,709 - INFO - VN ctest-vn-42338996 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-17 02:35:55,709 - DEBUG - Verifying the vn in opserver
2024-10-17 02:35:55,709 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996 virtual network link through opserver 10.0.0.38
2024-10-17 02:35:55,709 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-10-17 02:35:55,722 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996?flat'}
2024-10-17 02:35:55,722 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996 is found in opserver
2024-10-17 02:35:55,733 - DEBUG - Do not have enough data to verify VN in agent
2024-10-17 02:35:55,739 - DEBUG - VRF ids for VN ctest-vn-42338996: {}
2024-10-17 02:35:55,800 - DEBUG - Services list from nova: [