2024-09-12 12:29:06,396 - INFO - Domain Default found not creating
2024-09-12 12:29:06,550 - INFO - Project ctest-TestBasicPolicy-01690900 not found, creating it
2024-09-12 12:29:07,034 - INFO - Created Project:ctest-TestBasicPolicy-01690900, ID : b366041e-7a75-49fc-840a-1b4290606a80
2024-09-12 12:29:08,524 - INFO - ================================================================================
2024-09-12 12:29:08,525 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-12 12:29:08,525 - 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-09-12 12:29:08,780 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.12': '0'}} with
2024-09-12 12:29:08,780 - INFO - Initial checks done. Running the testcase now
2024-09-12 12:29:08,780 - INFO -
2024-09-12 12:29:09,341 - DEBUG - Response for create_network : {'network': {'id': '257a113f-aca7-4a96-a33d-be1138289d12', 'name': 'ctest-vn-07287374', 'tenant_id': 'b366041e7a7549fc840a1b4290606a80', 'project_id': 'b366041e7a7549fc840a1b4290606a80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01690900', 'ctest-vn-07287374'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 12:29:09,558 - DEBUG - Response for create_subnet : {'subnet': {'id': '761a2450-fdc2-4d98-828c-b336860ede8c', 'name': '', 'tenant_id': 'b366041e7a7549fc840a1b4290606a80', 'network_id': '257a113f-aca7-4a96-a33d-be1138289d12', 'ip_version': 4, 'cidr': '64.78.93.192/26', 'allocation_pools': [{'start': '64.78.93.194', 'end': '64.78.93.254'}], 'gateway_ip': '64.78.93.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.78.93.194', 'tags': [], 'project_id': 'b366041e7a7549fc840a1b4290606a80'}}
2024-09-12 12:29:09,577 - INFO - Created VN ctest-vn-07287374
2024-09-12 12:29:09,637 - DEBUG - VN ctest-vn-07287374 UUID is 257a113f-aca7-4a96-a33d-be1138289d12
2024-09-12 12:29:09,951 - DEBUG - Response for create_network : {'network': {'id': 'd1f2af19-28cd-4513-aa03-847d4cf69ed9', 'name': 'ctest-vn-17348856', 'tenant_id': 'b366041e7a7549fc840a1b4290606a80', 'project_id': 'b366041e7a7549fc840a1b4290606a80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01690900', 'ctest-vn-17348856'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 12:29:10,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ed3892b-5560-4c7b-9125-57261e7e9ae9', 'name': '', 'tenant_id': 'b366041e7a7549fc840a1b4290606a80', 'network_id': 'd1f2af19-28cd-4513-aa03-847d4cf69ed9', 'ip_version': 4, 'cidr': '106.159.25.64/26', 'allocation_pools': [{'start': '106.159.25.66', 'end': '106.159.25.126'}], 'gateway_ip': '106.159.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.159.25.66', 'tags': [], 'project_id': 'b366041e7a7549fc840a1b4290606a80'}}
2024-09-12 12:29:10,176 - INFO - Created VN ctest-vn-17348856
2024-09-12 12:29:10,249 - DEBUG - VN ctest-vn-17348856 UUID is d1f2af19-28cd-4513-aa03-847d4cf69ed9
2024-09-12 12:29:10,370 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-07287374, 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-01690900:ctest-vn-17348856, 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-09-12 12:29:10,678 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '257a113f-aca7-4a96-a33d-be1138289d12', 'name': 'ctest-vn-07287374', 'tenant_id': 'b366041e7a7549fc840a1b4290606a80', 'project_id': 'b366041e7a7549fc840a1b4290606a80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['761a2450-fdc2-4d98-828c-b336860ede8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01690900', 'ctest-vn-07287374'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01690900', 'ctest-policy-allow-all-76913363']], 'subnet_ipam': [{'subnet_cidr': '64.78.93.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 12:29:10,916 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1f2af19-28cd-4513-aa03-847d4cf69ed9', 'name': 'ctest-vn-17348856', 'tenant_id': 'b366041e7a7549fc840a1b4290606a80', 'project_id': 'b366041e7a7549fc840a1b4290606a80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ed3892b-5560-4c7b-9125-57261e7e9ae9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01690900', 'ctest-vn-17348856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01690900', 'ctest-policy-allow-all-76913363']], 'subnet_ipam': [{'subnet_cidr': '106.159.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 12:29:11,097 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-12 12:29:11,399 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-12 12:29:11,430 - DEBUG - Requesting: http://10.0.0.29:8082/domain/331898b0-da1e-429d-bb82-0d8576516e87
2024-09-12 12:29:11,444 - DEBUG - Requesting: http://10.0.0.29:8082/project/b366041e-7a75-49fc-840a-1b4290606a80
2024-09-12 12:29:11,523 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/257a113f-aca7-4a96-a33d-be1138289d12
2024-09-12 12:29:11,540 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/257a113f-aca7-4a96-a33d-be1138289d12
2024-09-12 12:29:11,555 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/39338e48-3fec-49b5-96fb-61a6667dfe5b
2024-09-12 12:29:11,564 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/39338e48-3fec-49b5-96fb-61a6667dfe5b
2024-09-12 12:29:11,573 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c7830e35-f499-4fce-bf0f-cca90e8f454f
2024-09-12 12:29:11,582 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 12:29:11,582 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/257a113f-aca7-4a96-a33d-be1138289d12
2024-09-12 12:29:11,596 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/39338e48-3fec-49b5-96fb-61a6667dfe5b
2024-09-12 12:29:11,618 - INFO - Verified VN network id 8 for VN 257a113f-aca7-4a96-a33d-be1138289d12
2024-09-12 12:29:11,618 - INFO - Verifications in API Server for VN ctest-vn-07287374 passed
2024-09-12 12:29:11,618 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/257a113f-aca7-4a96-a33d-be1138289d12
2024-09-12 12:29:11,633 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/39338e48-3fec-49b5-96fb-61a6667dfe5b
2024-09-12 12:29:11,643 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/39338e48-3fec-49b5-96fb-61a6667dfe5b
2024-09-12 12:29:11,652 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c7830e35-f499-4fce-bf0f-cca90e8f454f
2024-09-12 12:29:11,667 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-07287374', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01690900', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2700489891739290262', 'uuid-lslong': '11762766782927510802'}, 'enable': 'true', 'created': '2024-09-12T12:29:09', 'last-modified': '2024-09-12T12:29:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012129'}
2024-09-12 12:29:11,675 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 12:29:11,675 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07287374 passed
2024-09-12 12:29:11,675 - DEBUG - ====Verifying policy data for ctest-vn-07287374 in API_Server ======
2024-09-12 12:29:11,675 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-12 12:29:11,681 - DEBUG - Requesting: http://10.0.0.29:8082/domain/331898b0-da1e-429d-bb82-0d8576516e87
2024-09-12 12:29:11,694 - DEBUG - Requesting: http://10.0.0.29:8082/project/b366041e-7a75-49fc-840a-1b4290606a80
2024-09-12 12:29:11,773 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/257a113f-aca7-4a96-a33d-be1138289d12
2024-09-12 12:29:11,787 - DEBUG - ==>Verifying data for policy with id: 336b1972-cc06-4131-b83c-34c44f0b9f74, fqn: ['default-domain', 'ctest-TestBasicPolicy-01690900', 'ctest-policy-allow-all-76913363']
2024-09-12 12:29:11,787 - INFO - VN ctest-vn-07287374 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 12:29:11,787 - DEBUG - Verifying the vn in opserver
2024-09-12 12:29:11,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-07287374 virtual network link through opserver 10.0.0.29
2024-09-12 12:29:11,787 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-09-12 12:29:12,078 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-09-12 12:29:12,136 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-07287374', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-07287374?flat'}
2024-09-12 12:29:12,136 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-07287374 is found in opserver
2024-09-12 12:29:12,147 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 12:29:12,152 - DEBUG - VRF ids for VN ctest-vn-07287374: {}
2024-09-12 12:29:12,152 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-12 12:29:12,158 - DEBUG - Requesting: http://10.0.0.29:8082/domain/331898b0-da1e-429d-bb82-0d8576516e87
2024-09-12 12:29:12,172 - DEBUG - Requesting: http://10.0.0.29:8082/project/b366041e-7a75-49fc-840a-1b4290606a80
2024-09-12 12:29:12,255 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d1f2af19-28cd-4513-aa03-847d4cf69ed9
2024-09-12 12:29:12,272 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d1f2af19-28cd-4513-aa03-847d4cf69ed9
2024-09-12 12:29:12,285 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a676365-adb7-4385-a1e6-f771edbb6abf
2024-09-12 12:29:12,294 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a676365-adb7-4385-a1e6-f771edbb6abf
2024-09-12 12:29:12,304 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8e62a853-5f37-4d62-9d76-5e2fd55838ea
2024-09-12 12:29:12,314 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 12:29:12,314 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d1f2af19-28cd-4513-aa03-847d4cf69ed9
2024-09-12 12:29:12,331 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a676365-adb7-4385-a1e6-f771edbb6abf
2024-09-12 12:29:12,357 - INFO - Verified VN network id 9 for VN d1f2af19-28cd-4513-aa03-847d4cf69ed9
2024-09-12 12:29:12,357 - INFO - Verifications in API Server for VN ctest-vn-17348856 passed
2024-09-12 12:29:12,358 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d1f2af19-28cd-4513-aa03-847d4cf69ed9
2024-09-12 12:29:12,382 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a676365-adb7-4385-a1e6-f771edbb6abf
2024-09-12 12:29:12,391 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a676365-adb7-4385-a1e6-f771edbb6abf
2024-09-12 12:29:12,400 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8e62a853-5f37-4d62-9d76-5e2fd55838ea
2024-09-12 12:29:12,415 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-17348856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01690900', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15128346620884501779', 'uuid-lslong': '12250781085074890457'}, 'enable': 'true', 'created': '2024-09-12T12:29:09', 'last-modified': '2024-09-12T12:29:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.518816'}
2024-09-12 12:29:12,421 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 12:29:12,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17348856 passed
2024-09-12 12:29:12,421 - DEBUG - ====Verifying policy data for ctest-vn-17348856 in API_Server ======
2024-09-12 12:29:12,421 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-09-12 12:29:12,427 - DEBUG - Requesting: http://10.0.0.29:8082/domain/331898b0-da1e-429d-bb82-0d8576516e87
2024-09-12 12:29:12,440 - DEBUG - Requesting: http://10.0.0.29:8082/project/b366041e-7a75-49fc-840a-1b4290606a80
2024-09-12 12:29:12,522 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d1f2af19-28cd-4513-aa03-847d4cf69ed9
2024-09-12 12:29:12,540 - DEBUG - ==>Verifying data for policy with id: 336b1972-cc06-4131-b83c-34c44f0b9f74, fqn: ['default-domain', 'ctest-TestBasicPolicy-01690900', 'ctest-policy-allow-all-76913363']
2024-09-12 12:29:12,540 - INFO - VN ctest-vn-17348856 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 12:29:12,540 - DEBUG - Verifying the vn in opserver
2024-09-12 12:29:12,540 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-17348856 virtual network link through opserver 10.0.0.29
2024-09-12 12:29:12,540 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-09-12 12:29:12,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-17348856', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-17348856?flat'}
2024-09-12 12:29:12,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01690900:ctest-vn-17348856 is found in opserver
2024-09-12 12:29:12,564 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 12:29:12,569 - DEBUG - VRF ids for VN ctest-vn-17348856: {}
2024-09-12 12:29:12,624 - DEBUG - Services list from nova: [