2024-08-29 13:25:41,762 - INFO - Domain Default found not creating
2024-08-29 13:25:41,964 - INFO - Project ctest-TestBasicPolicy-82317975 not found, creating it
2024-08-29 13:25:42,483 - INFO - Created Project:ctest-TestBasicPolicy-82317975, ID : dfd98e34-273b-498b-8d25-30aa0847824e
2024-08-29 13:25:44,280 - INFO - ================================================================================
2024-08-29 13:25:44,280 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-29 13:25:44,280 - 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-08-29 13:25:44,545 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.13': '0'}} with
2024-08-29 13:25:44,545 - INFO - Initial checks done. Running the testcase now
2024-08-29 13:25:44,545 - INFO -
2024-08-29 13:25:45,207 - DEBUG - Response for create_network : {'network': {'id': 'fa7eb375-7175-4c2a-ba12-637408303eb7', 'name': 'ctest-vn-08328732', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'project_id': 'dfd98e34273b498b8d2530aa0847824e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-vn-08328732'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 13:25:45,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '91e0ce75-9f79-417c-9d77-49e38ba70e98', 'name': '', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'network_id': 'fa7eb375-7175-4c2a-ba12-637408303eb7', 'ip_version': 4, 'cidr': '203.189.213.64/26', 'allocation_pools': [{'start': '203.189.213.66', 'end': '203.189.213.126'}], 'gateway_ip': '203.189.213.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.189.213.66', 'tags': [], 'project_id': 'dfd98e34273b498b8d2530aa0847824e'}}
2024-08-29 13:25:45,458 - INFO - Created VN ctest-vn-08328732
2024-08-29 13:25:45,514 - DEBUG - VN ctest-vn-08328732 UUID is fa7eb375-7175-4c2a-ba12-637408303eb7
2024-08-29 13:25:45,843 - DEBUG - Response for create_network : {'network': {'id': '8efd81a9-322d-4383-9f29-ce0c6752adb4', 'name': 'ctest-vn-10511997', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'project_id': 'dfd98e34273b498b8d2530aa0847824e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-vn-10511997'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 13:25:46,022 - DEBUG - Response for create_subnet : {'subnet': {'id': '46cee7de-ed83-4ec2-8dda-6cea78103b62', 'name': '', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'network_id': '8efd81a9-322d-4383-9f29-ce0c6752adb4', 'ip_version': 4, 'cidr': '172.226.226.0/26', 'allocation_pools': [{'start': '172.226.226.2', 'end': '172.226.226.62'}], 'gateway_ip': '172.226.226.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.226.226.2', 'tags': [], 'project_id': 'dfd98e34273b498b8d2530aa0847824e'}}
2024-08-29 13:25:46,048 - INFO - Created VN ctest-vn-10511997
2024-08-29 13:25:46,101 - DEBUG - VN ctest-vn-10511997 UUID is 8efd81a9-322d-4383-9f29-ce0c6752adb4
2024-08-29 13:25:46,237 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732, 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-82317975:ctest-vn-10511997, 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-08-29 13:25:46,552 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa7eb375-7175-4c2a-ba12-637408303eb7', 'name': 'ctest-vn-08328732', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'project_id': 'dfd98e34273b498b8d2530aa0847824e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91e0ce75-9f79-417c-9d77-49e38ba70e98'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-vn-08328732'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-policy-allow-all-93172904']], 'subnet_ipam': [{'subnet_cidr': '203.189.213.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 13:25:46,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8efd81a9-322d-4383-9f29-ce0c6752adb4', 'name': 'ctest-vn-10511997', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'project_id': 'dfd98e34273b498b8d2530aa0847824e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46cee7de-ed83-4ec2-8dda-6cea78103b62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-vn-10511997'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-policy-allow-all-93172904']], 'subnet_ipam': [{'subnet_cidr': '172.226.226.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 13:25:47,014 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-08-29 13:25:47,366 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-08-29 13:25:47,403 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a
2024-08-29 13:25:47,419 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e
2024-08-29 13:25:47,494 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7
2024-08-29 13:25:47,508 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7
2024-08-29 13:25:47,524 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb
2024-08-29 13:25:47,535 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb
2024-08-29 13:25:47,545 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/070d47cc-eb11-4f89-b938-9360b2a75481
2024-08-29 13:25:47,555 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 13:25:47,555 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7
2024-08-29 13:25:47,566 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb
2024-08-29 13:25:47,584 - INFO - Verified VN network id 8 for VN fa7eb375-7175-4c2a-ba12-637408303eb7
2024-08-29 13:25:47,584 - INFO - Verifications in API Server for VN ctest-vn-08328732 passed
2024-08-29 13:25:47,584 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7
2024-08-29 13:25:47,599 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb
2024-08-29 13:25:47,610 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb
2024-08-29 13:25:47,620 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/070d47cc-eb11-4f89-b938-9360b2a75481
2024-08-29 13:25:47,640 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82317975', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18050061673543584810', 'uuid-lslong': '13407888390640123575'}, 'enable': 'true', 'created': '2024-08-29T13:25:45', 'last-modified': '2024-08-29T13:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.109633'}
2024-08-29 13:25:47,649 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 13:25:47,649 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08328732 passed
2024-08-29 13:25:47,650 - DEBUG - ====Verifying policy data for ctest-vn-08328732 in API_Server ======
2024-08-29 13:25:47,650 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-08-29 13:25:47,657 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a
2024-08-29 13:25:47,672 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e
2024-08-29 13:25:47,753 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7
2024-08-29 13:25:47,766 - DEBUG - ==>Verifying data for policy with id: 1aa6cb36-9cf0-4c12-9fdf-f1c0b6987d60, fqn: ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-policy-allow-all-93172904']
2024-08-29 13:25:47,766 - INFO - VN ctest-vn-08328732 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 13:25:47,766 - DEBUG - Verifying the vn in opserver
2024-08-29 13:25:47,766 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732 virtual network link through opserver 10.0.0.35
2024-08-29 13:25:47,766 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-08-29 13:25:48,114 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-08-29 13:25:48,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732?flat'}
2024-08-29 13:25:48,189 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732 is found in opserver
2024-08-29 13:25:48,203 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 13:25:48,209 - DEBUG - VRF ids for VN ctest-vn-08328732: {}
2024-08-29 13:25:48,209 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-08-29 13:25:48,218 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a
2024-08-29 13:25:48,235 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e
2024-08-29 13:25:48,311 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4
2024-08-29 13:25:48,324 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4
2024-08-29 13:25:48,335 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004
2024-08-29 13:25:48,344 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004
2024-08-29 13:25:48,353 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/21221a25-b791-4d15-b1c1-9d5b3e4dd4dd
2024-08-29 13:25:48,361 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 13:25:48,361 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4
2024-08-29 13:25:48,371 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004
2024-08-29 13:25:48,386 - INFO - Verified VN network id 9 for VN 8efd81a9-322d-4383-9f29-ce0c6752adb4
2024-08-29 13:25:48,386 - INFO - Verifications in API Server for VN ctest-vn-10511997 passed
2024-08-29 13:25:48,387 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4
2024-08-29 13:25:48,397 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004
2024-08-29 13:25:48,406 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004
2024-08-29 13:25:48,414 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/21221a25-b791-4d15-b1c1-9d5b3e4dd4dd
2024-08-29 13:25:48,429 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82317975', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10303534086184846211', 'uuid-lslong': '11468924478744079796'}, 'enable': 'true', 'created': '2024-08-29T13:25:45', 'last-modified': '2024-08-29T13:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.651723'}
2024-08-29 13:25:48,437 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 13:25:48,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10511997 passed
2024-08-29 13:25:48,437 - DEBUG - ====Verifying policy data for ctest-vn-10511997 in API_Server ======
2024-08-29 13:25:48,437 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-08-29 13:25:48,444 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a
2024-08-29 13:25:48,459 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e
2024-08-29 13:25:48,534 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4
2024-08-29 13:25:48,544 - DEBUG - ==>Verifying data for policy with id: 1aa6cb36-9cf0-4c12-9fdf-f1c0b6987d60, fqn: ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-policy-allow-all-93172904']
2024-08-29 13:25:48,544 - INFO - VN ctest-vn-10511997 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 13:25:48,545 - DEBUG - Verifying the vn in opserver
2024-08-29 13:25:48,545 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997 virtual network link through opserver 10.0.0.35
2024-08-29 13:25:48,545 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-08-29 13:25:48,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997?flat'}
2024-08-29 13:25:48,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997 is found in opserver
2024-08-29 13:25:48,571 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 13:25:48,577 - DEBUG - VRF ids for VN ctest-vn-10511997: {}
2024-08-29 13:25:48,645 - DEBUG - Services list from nova: [