2024-12-30 22:47:35,852 - INFO - Domain Default found not creating
2024-12-30 22:47:35,977 - INFO - Project ctest-TestBasicPolicy-94775673 not found, creating it
2024-12-30 22:47:36,413 - INFO - Created Project:ctest-TestBasicPolicy-94775673, ID : b7be9200-1309-4f75-b1ea-6feea359ed19
2024-12-30 22:47:37,736 - INFO - ================================================================================
2024-12-30 22:47:37,736 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-30 22:47:37,736 - 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-12-30 22:47:37,988 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.7': '0'}} with
2024-12-30 22:47:37,988 - INFO - Initial checks done. Running the testcase now
2024-12-30 22:47:37,988 - INFO -
2024-12-30 22:47:38,509 - DEBUG - Response for create_network : {'network': {'id': 'd255a7cb-ef20-4d63-a89f-dac00d970aaa', 'name': 'ctest-vn-97275173', 'tenant_id': 'b7be920013094f75b1ea6feea359ed19', 'project_id': 'b7be920013094f75b1ea6feea359ed19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94775673', 'ctest-vn-97275173'], 'port_security_enabled': True, 'description': ''}}
2024-12-30 22:47:38,721 - DEBUG - Response for create_subnet : {'subnet': {'id': '64cf1bfd-5809-4dd2-8e2d-3415aa0928c2', 'name': '', 'tenant_id': 'b7be920013094f75b1ea6feea359ed19', 'network_id': 'd255a7cb-ef20-4d63-a89f-dac00d970aaa', 'ip_version': 4, 'cidr': '90.179.102.128/26', 'allocation_pools': [{'start': '90.179.102.130', 'end': '90.179.102.190'}], 'gateway_ip': '90.179.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.179.102.130', 'tags': [], 'project_id': 'b7be920013094f75b1ea6feea359ed19'}}
2024-12-30 22:47:38,737 - INFO - Created VN ctest-vn-97275173
2024-12-30 22:47:38,795 - DEBUG - VN ctest-vn-97275173 UUID is d255a7cb-ef20-4d63-a89f-dac00d970aaa
2024-12-30 22:47:39,091 - DEBUG - Response for create_network : {'network': {'id': '4886751f-d1ba-4d0b-a27b-47ab29a67c9c', 'name': 'ctest-vn-92217983', 'tenant_id': 'b7be920013094f75b1ea6feea359ed19', 'project_id': 'b7be920013094f75b1ea6feea359ed19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94775673', 'ctest-vn-92217983'], 'port_security_enabled': True, 'description': ''}}
2024-12-30 22:47:39,241 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f94b6454-54d0-4ed5-a68f-276d89664faf', 'name': '', 'tenant_id': 'b7be920013094f75b1ea6feea359ed19', 'network_id': '4886751f-d1ba-4d0b-a27b-47ab29a67c9c', 'ip_version': 4, 'cidr': '28.3.238.64/26', 'allocation_pools': [{'start': '28.3.238.66', 'end': '28.3.238.126'}], 'gateway_ip': '28.3.238.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.3.238.66', 'tags': [], 'project_id': 'b7be920013094f75b1ea6feea359ed19'}}
2024-12-30 22:47:39,260 - INFO - Created VN ctest-vn-92217983
2024-12-30 22:47:39,311 - DEBUG - VN ctest-vn-92217983 UUID is 4886751f-d1ba-4d0b-a27b-47ab29a67c9c
2024-12-30 22:47:39,463 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-97275173, 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-94775673:ctest-vn-92217983, 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-12-30 22:47:39,743 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd255a7cb-ef20-4d63-a89f-dac00d970aaa', 'name': 'ctest-vn-97275173', 'tenant_id': 'b7be920013094f75b1ea6feea359ed19', 'project_id': 'b7be920013094f75b1ea6feea359ed19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64cf1bfd-5809-4dd2-8e2d-3415aa0928c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94775673', 'ctest-vn-97275173'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94775673', 'ctest-policy-allow-all-56804276']], 'subnet_ipam': [{'subnet_cidr': '90.179.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-30 22:47:39,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4886751f-d1ba-4d0b-a27b-47ab29a67c9c', 'name': 'ctest-vn-92217983', 'tenant_id': 'b7be920013094f75b1ea6feea359ed19', 'project_id': 'b7be920013094f75b1ea6feea359ed19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f94b6454-54d0-4ed5-a68f-276d89664faf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94775673', 'ctest-vn-92217983'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94775673', 'ctest-policy-allow-all-56804276']], 'subnet_ipam': [{'subnet_cidr': '28.3.238.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-30 22:47:40,143 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-12-30 22:47:40,436 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-12-30 22:47:40,462 - DEBUG - Requesting: http://10.0.0.30:8082/domain/d3a94ade-2fd8-4852-a93d-f69c5181da9b
2024-12-30 22:47:40,474 - DEBUG - Requesting: http://10.0.0.30:8082/project/b7be9200-1309-4f75-b1ea-6feea359ed19
2024-12-30 22:47:40,544 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d255a7cb-ef20-4d63-a89f-dac00d970aaa
2024-12-30 22:47:40,554 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d255a7cb-ef20-4d63-a89f-dac00d970aaa
2024-12-30 22:47:40,563 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/daa77bc6-4540-442e-bc35-66de9b9ca516
2024-12-30 22:47:40,569 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/daa77bc6-4540-442e-bc35-66de9b9ca516
2024-12-30 22:47:40,575 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/11efa248-69d1-4ad8-98f1-0651535c1206
2024-12-30 22:47:40,581 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-30 22:47:40,581 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d255a7cb-ef20-4d63-a89f-dac00d970aaa
2024-12-30 22:47:40,589 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/daa77bc6-4540-442e-bc35-66de9b9ca516
2024-12-30 22:47:40,601 - INFO - Verified VN network id 7 for VN d255a7cb-ef20-4d63-a89f-dac00d970aaa
2024-12-30 22:47:40,601 - INFO - Verifications in API Server for VN ctest-vn-97275173 passed
2024-12-30 22:47:40,601 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d255a7cb-ef20-4d63-a89f-dac00d970aaa
2024-12-30 22:47:40,610 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/daa77bc6-4540-442e-bc35-66de9b9ca516
2024-12-30 22:47:40,616 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/daa77bc6-4540-442e-bc35-66de9b9ca516
2024-12-30 22:47:40,621 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/11efa248-69d1-4ad8-98f1-0651535c1206
2024-12-30 22:47:40,632 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-97275173', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94775673', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15156204615317343587', 'uuid-lslong': '12150670838065466026'}, 'enable': 'true', 'created': '2024-12-30T22:47:38', 'last-modified': '2024-12-30T22:47:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908824'}
2024-12-30 22:47:40,639 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-30 22:47:40,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97275173 passed
2024-12-30 22:47:40,639 - DEBUG - ====Verifying policy data for ctest-vn-97275173 in API_Server ======
2024-12-30 22:47:40,639 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-12-30 22:47:40,644 - DEBUG - Requesting: http://10.0.0.30:8082/domain/d3a94ade-2fd8-4852-a93d-f69c5181da9b
2024-12-30 22:47:40,654 - DEBUG - Requesting: http://10.0.0.30:8082/project/b7be9200-1309-4f75-b1ea-6feea359ed19
2024-12-30 22:47:40,721 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/d255a7cb-ef20-4d63-a89f-dac00d970aaa
2024-12-30 22:47:40,730 - DEBUG - ==>Verifying data for policy with id: a2fdffe0-80fa-4ce8-8730-38e3185322c9, fqn: ['default-domain', 'ctest-TestBasicPolicy-94775673', 'ctest-policy-allow-all-56804276']
2024-12-30 22:47:40,730 - INFO - VN ctest-vn-97275173 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-30 22:47:40,730 - DEBUG - Verifying the vn in opserver
2024-12-30 22:47:40,730 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-97275173 virtual network link through opserver 10.0.0.30
2024-12-30 22:47:40,730 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-12-30 22:47:41,018 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-12-30 22:47:41,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-97275173', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-97275173?flat'}
2024-12-30 22:47:41,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-97275173 is found in opserver
2024-12-30 22:47:41,075 - DEBUG - Do not have enough data to verify VN in agent
2024-12-30 22:47:41,079 - DEBUG - VRF ids for VN ctest-vn-97275173: {}
2024-12-30 22:47:41,079 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-12-30 22:47:41,084 - DEBUG - Requesting: http://10.0.0.30:8082/domain/d3a94ade-2fd8-4852-a93d-f69c5181da9b
2024-12-30 22:47:41,095 - DEBUG - Requesting: http://10.0.0.30:8082/project/b7be9200-1309-4f75-b1ea-6feea359ed19
2024-12-30 22:47:41,168 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4886751f-d1ba-4d0b-a27b-47ab29a67c9c
2024-12-30 22:47:41,178 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4886751f-d1ba-4d0b-a27b-47ab29a67c9c
2024-12-30 22:47:41,187 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/20ebdfa8-6c87-484e-9e1d-a33d3aba3ded
2024-12-30 22:47:41,193 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/20ebdfa8-6c87-484e-9e1d-a33d3aba3ded
2024-12-30 22:47:41,198 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/aaad0180-11ad-46a3-a339-9af92dde5c23
2024-12-30 22:47:41,204 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-30 22:47:41,204 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4886751f-d1ba-4d0b-a27b-47ab29a67c9c
2024-12-30 22:47:41,212 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/20ebdfa8-6c87-484e-9e1d-a33d3aba3ded
2024-12-30 22:47:41,225 - INFO - Verified VN network id 8 for VN 4886751f-d1ba-4d0b-a27b-47ab29a67c9c
2024-12-30 22:47:41,225 - INFO - Verifications in API Server for VN ctest-vn-92217983 passed
2024-12-30 22:47:41,225 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4886751f-d1ba-4d0b-a27b-47ab29a67c9c
2024-12-30 22:47:41,234 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/20ebdfa8-6c87-484e-9e1d-a33d3aba3ded
2024-12-30 22:47:41,240 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/20ebdfa8-6c87-484e-9e1d-a33d3aba3ded
2024-12-30 22:47:41,247 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/aaad0180-11ad-46a3-a339-9af92dde5c23
2024-12-30 22:47:41,257 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-92217983', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94775673', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5225993197133122827', 'uuid-lslong': '11708030456743492764'}, 'enable': 'true', 'created': '2024-12-30T22:47:39', 'last-modified': '2024-12-30T22:47:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.313775'}
2024-12-30 22:47:41,264 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-30 22:47:41,264 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92217983 passed
2024-12-30 22:47:41,264 - DEBUG - ====Verifying policy data for ctest-vn-92217983 in API_Server ======
2024-12-30 22:47:41,264 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-12-30 22:47:41,269 - DEBUG - Requesting: http://10.0.0.30:8082/domain/d3a94ade-2fd8-4852-a93d-f69c5181da9b
2024-12-30 22:47:41,280 - DEBUG - Requesting: http://10.0.0.30:8082/project/b7be9200-1309-4f75-b1ea-6feea359ed19
2024-12-30 22:47:41,346 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4886751f-d1ba-4d0b-a27b-47ab29a67c9c
2024-12-30 22:47:41,357 - DEBUG - ==>Verifying data for policy with id: a2fdffe0-80fa-4ce8-8730-38e3185322c9, fqn: ['default-domain', 'ctest-TestBasicPolicy-94775673', 'ctest-policy-allow-all-56804276']
2024-12-30 22:47:41,357 - INFO - VN ctest-vn-92217983 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-30 22:47:41,357 - DEBUG - Verifying the vn in opserver
2024-12-30 22:47:41,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-92217983 virtual network link through opserver 10.0.0.30
2024-12-30 22:47:41,357 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-12-30 22:47:41,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-92217983', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-92217983?flat'}
2024-12-30 22:47:41,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94775673:ctest-vn-92217983 is found in opserver
2024-12-30 22:47:41,376 - DEBUG - Do not have enough data to verify VN in agent
2024-12-30 22:47:41,380 - DEBUG - VRF ids for VN ctest-vn-92217983: {}
2024-12-30 22:47:41,428 - DEBUG - Services list from nova: [